org.apache.cocoon.profiler.debugging
Class Debugger.RequestWrapper
java.lang.Object
org.apache.cocoon.environment.impl.AbstractRequest
org.apache.cocoon.environment.wrapper.AbstractRequestWrapper
org.apache.cocoon.profiler.debugging.Debugger.RequestWrapper
- All Implemented Interfaces:
- Request
- Enclosing class:
- Debugger
- protected static final class Debugger.RequestWrapper
- extends AbstractRequestWrapper
We wrap the request to remove the request parameter from the list
of parameters. This ensures that internal requests are not debugged.
Method Summary |
String |
getParameter(String name)
Returns the value of a request parameter as a String , |
Enumeration |
getParameterNames()
Returns an Enumeration of String
objects containing the names of the parameters contained
in this request. |
String[] |
getParameterValues(String name)
Returns an array of String objects containing
all of the values the given request parameter has, or
null if the parameter does not exist.
|
String |
getQueryString()
Returns the query string that is contained in the request
URL after the path. |
Methods inherited from class org.apache.cocoon.environment.wrapper.AbstractRequestWrapper |
get, getAttribute, getAttribute, getAttributeNames, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookieMap, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getLocale, getLocales, getMethod, getPathInfo, getPathTranslated, getProtocol, getRemoteAddr, getRemoteHost, getRemoteUser, getRequestedSessionId, getRequestURI, getScheme, getServerName, getServerPort, getServletPath, getSession, getSession, getSitemapPath, getSitemapURI, getSitemapURIPrefix, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, removeAttribute, removeAttribute, searchAttribute, setAttribute, setAttribute, setCharacterEncoding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Debugger.RequestWrapper
public Debugger.RequestWrapper(Request request)
getParameter
public String getParameter(String name)
- Description copied from interface:
Request
- Returns the value of a request parameter as a
String
,
- Specified by:
getParameter
in interface Request
- Overrides:
getParameter
in class AbstractRequestWrapper
- See Also:
Request.getParameter(java.lang.String)
getParameterNames
public Enumeration getParameterNames()
- Description copied from interface:
Request
- Returns an
Enumeration
of String
objects containing the names of the parameters contained
in this request. If the request has
no parameters, the method returns an
empty Enumeration
.
- Specified by:
getParameterNames
in interface Request
- Overrides:
getParameterNames
in class AbstractRequestWrapper
- See Also:
Request.getParameterNames()
getParameterValues
public String[] getParameterValues(String name)
- Description copied from interface:
Request
- Returns an array of
String
objects containing
all of the values the given request parameter has, or
null
if the parameter does not exist.
If the parameter has a single value, the array has a length
of 1.
- Specified by:
getParameterValues
in interface Request
- Overrides:
getParameterValues
in class AbstractRequestWrapper
- See Also:
Request.getParameterValues(java.lang.String)
getQueryString
public String getQueryString()
- Description copied from interface:
Request
- Returns the query string that is contained in the request
URL after the path. This method returns
null
if the URL does not have a query string. Same as the value
of the CGI variable QUERY_STRING.
- Specified by:
getQueryString
in interface Request
- Overrides:
getQueryString
in class AbstractRequestWrapper
- See Also:
Request.getQueryString()
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.