com.jalios.util
Class RestletUtil
java.lang.Object
com.jalios.util.RestletUtil
public class RestletUtil
- extends Object
Utility functions (static public methods) used to support Restlet framework.
- Since:
- JCMS-6.0.1
- Author:
- dissert
Method Summary |
static String |
getFormAsQueryString(org.restlet.data.Form form)
The method form.getQueryString() is buggy, since it may create queryString
with parameter without '=' character. |
static String |
getUrl(org.restlet.data.Request request)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORM_CHARACTER_SET
public static final org.restlet.data.CharacterSet FORM_CHARACTER_SET
RestletUtil
public RestletUtil()
getFormAsQueryString
public static String getFormAsQueryString(org.restlet.data.Form form)
- The method form.getQueryString() is buggy, since it may create queryString
with parameter without '=' character.
Therefore, the use of this method is recommended : when a parameter value is empty,
it set "paramName=" instead of just "paramName".
- Parameters:
form
- a org.restlet.data.Form instance
- Returns:
- the String queryString associated
getUrl
public static String getUrl(org.restlet.data.Request request)
- Parameters:
request
- A Restlet request
- Returns:
- the URL associated to this request
Copyright © 2001-2010 Jalios SA. All Rights Reserved.