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
  • Field Details

    • FORM_CHARACTER_SET

      public static final org.restlet.data.CharacterSet FORM_CHARACTER_SET
  • Constructor Details

    • RestletUtil

      public RestletUtil()
  • Method Details

    • 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