org.apache.cocoon.profiler.debugging
Class Debugger.RequestWrapper

java.lang.Object
  extended byorg.apache.cocoon.environment.impl.AbstractRequest
      extended byorg.apache.cocoon.environment.wrapper.AbstractRequestWrapper
          extended byorg.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.


Field Summary
 
Fields inherited from class org.apache.cocoon.environment.wrapper.AbstractRequestWrapper
req
 
Fields inherited from interface org.apache.cocoon.environment.Request
GLOBAL_SCOPE, REQUEST_SCOPE
 
Constructor Summary
Debugger.RequestWrapper(Request request)
           
 
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 org.apache.cocoon.environment.impl.AbstractRequest
getAttributes, getHeaders, getParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debugger.RequestWrapper

public Debugger.RequestWrapper(Request request)
Method Detail

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.