Package com.jalios.util
Class RestletUtil
java.lang.Object
com.jalios.util.RestletUtil
Utility functions (static public methods) used to support Restlet framework.
- Since:
- JCMS-6.0.1
- Author:
- dissert
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFormAsQueryString(org.restlet.data.Form form) The method form.getQueryString() is buggy, since it may create queryString with parameter without '=' character.static StringgetUrl(org.restlet.data.Request request)
-
Field Details
-
FORM_CHARACTER_SET
public static final org.restlet.data.CharacterSet FORM_CHARACTER_SET
-
-
Constructor Details
-
RestletUtil
public RestletUtil()
-
-
Method Details
-
getFormAsQueryString
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
- Parameters:
request- A Restlet request- Returns:
- the URL associated to this request
-