|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | POINTCUT | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | POINTCUT | CONSTRUCTOR | METHOD |
java.lang.Object | +--org.apache.cactus.server.ServletUtil
All prupose utility methods for manipulating the Servlet API.
Constructor Summary | |
ServletUtil()
All prupose utility methods for manipulating the Servlet API. |
Method Summary | |
static String |
getQueryStringParameter(String theQueryString,
String theParameter)
A substitute method for HttpServletRequest.getParameter() .
Affected by: LogAspect |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServletUtil()
Method Detail |
public static String getQueryStringParameter(String theQueryString, String theParameter)
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.
theQueryString
- the query string to parse
theParameter
- the name of the parameter to locate
around() in LogAspect
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | CONSTRUCTOR | METHOD |