net.ontopia.topicmaps.webed.impl.utils
Class ReqParamUtils

java.lang.Object
  extended by net.ontopia.topicmaps.webed.impl.utils.ReqParamUtils

public final class ReqParamUtils
extends Object

INTERNAL: Utility class for providing helper methods handling servlet request parameters (mainly for string manipulation purposes).


Constructor Summary
ReqParamUtils()
           
 
Method Summary
static Parameters decodeParameters(javax.servlet.http.HttpServletRequest request, String charenc)
          INTERNAL: Builds the Parameters object from an HttpServletRequest object.
static String params2URLQuery(Map extraReqParams, Parameters reqparams, String charenc)
          INTERNAL: Generate string which can be used to append to an URL.
static Map parseURLQuery(String url)
          INTERNAL: Parses the query part of a URL to extract the parameter names and values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReqParamUtils

public ReqParamUtils()
Method Detail

params2URLQuery

public static final String params2URLQuery(Map extraReqParams,
                                           Parameters reqparams,
                                           String charenc)
                                    throws IOException
INTERNAL: Generate string which can be used to append to an URL. Use all request parameter (that are key, value) pairs from the provided extraReqParams Map object.

Parameters:
charenc - the character encoding to use in the URL
Throws:
IOException

parseURLQuery

public static Map parseURLQuery(String url)
INTERNAL: Parses the query part of a URL to extract the parameter names and values.


decodeParameters

public static Parameters decodeParameters(javax.servlet.http.HttpServletRequest request,
                                          String charenc)
                                   throws javax.servlet.ServletException,
                                          IOException
INTERNAL: Builds the Parameters object from an HttpServletRequest object.

Throws:
javax.servlet.ServletException
IOException
Since:
2.0


Copyright © 2000-2012 Ontopia.