| java.lang.Object org.apache.cactus.internal.server.ServletUtil
ServletUtil | public class ServletUtil (Code) | | All prupose utility methods for manipulating the Servlet API.
version: $Id: ServletUtil.java 238991 2004-05-22 11:34:50Z vmassol $ |
Method Summary | |
public static String | getQueryStringParameter(String theQueryString, String theParameter) A substitute method for HttpServletRequest.getParameter() .
Contrary to getParameter() , this method does not
access the request input stream (only the query string of the url).
Note: We use this method internally to retrieve Cactus parameters passed
by the client side. |
getQueryStringParameter | public static String getQueryStringParameter(String theQueryString, String theParameter)(Code) | | A substitute method for HttpServletRequest.getParameter() .
Contrary to getParameter() , this method does not
access the request input stream (only the query string of the url).
Note: We use this method internally to retrieve Cactus parameters passed
by the client side. The issue with getParameter() is that
if you use it, then you cannot call getReader() or
getInputStream() (see the Servlet spec). However, if we
want to allow for testing code that uses these 2 methods (and we do !)
we need to use this method to get the internal Cactus parameters.
Parameters: theQueryString - the query string to parse Parameters: theParameter - the name of the parameter to locate the value for theParameter in theQueryString, null iftheParameter does not exist and "" if the parameter exists buthas no value defined in the query string |
|
|