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 java.lang.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, java.lang.String charenc)
          INTERNAL: Builds the Parameters object from an HttpServletRequest object.
static java.lang.String params2URLQuery(java.util.Map extraReqParams, Parameters reqparams, java.lang.String charenc)
          INTERNAL: Generate string which can be used to append to an URL.
static java.util.Map parseURLQuery(java.lang.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 java.lang.String params2URLQuery(java.util.Map extraReqParams,
                                                     Parameters reqparams,
                                                     java.lang.String charenc)
                                              throws java.io.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:
java.io.IOException

parseURLQuery

public static java.util.Map parseURLQuery(java.lang.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,
                                          java.lang.String charenc)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException
INTERNAL: Builds the Parameters object from an HttpServletRequest object.

Throws:
javax.servlet.ServletException
java.io.IOException
Since:
2.0


Copyright © 2000-2012 Ontopia.