org.apache.cocoon.environment.wrapper
Class RequestWrapper
java.lang.Object
org.apache.cocoon.environment.impl.AbstractRequest
org.apache.cocoon.environment.wrapper.AbstractRequestWrapper
org.apache.cocoon.environment.wrapper.RequestWrapper
- All Implemented Interfaces:
- HttpServletRequest, org.apache.cocoon.environment.Request, ServletRequest, org.apache.cocoon.environment.ValueHolder
- public final class RequestWrapper
- extends AbstractRequestWrapper
This is a wrapper class for the Request
object.
It has the same properties except that the url and the parameters
are different.
- Version:
- $Id: RequestWrapper.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Fields inherited from interface org.apache.cocoon.environment.Request |
GLOBAL_SCOPE, REQUEST_SCOPE |
Constructor Summary |
RequestWrapper(org.apache.cocoon.environment.Request request,
String requestURI,
String queryString,
org.apache.cocoon.environment.Environment env)
Constructor |
RequestWrapper(org.apache.cocoon.environment.Request request,
String requestURI,
String queryString,
org.apache.cocoon.environment.Environment env,
boolean rawMode)
Constructor |
Methods inherited from class org.apache.cocoon.environment.wrapper.AbstractRequestWrapper |
get, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getCocoonCookieMap, getCocoonCookies, getCocoonSession, getCocoonSession, getContentLength, getContentType, getContextPath, getCookieMap, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocalAttribute, getLocalAttributeNames, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameterMap, getPathInfo, getPathTranslated, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURL, getScheme, getServerName, getServerPort, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, removeAttribute, removeLocalAttribute, searchAttribute, setAttribute, setCharacterEncoding, setLocalAttribute |
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 |
RequestWrapper
public RequestWrapper(org.apache.cocoon.environment.Request request,
String requestURI,
String queryString,
org.apache.cocoon.environment.Environment env)
- Constructor
- Parameters:
request
- The Request to be wrapped.requestURI
- The URI.queryString
- The query String.env
- The current Environment.
RequestWrapper
public RequestWrapper(org.apache.cocoon.environment.Request request,
String requestURI,
String queryString,
org.apache.cocoon.environment.Environment env,
boolean rawMode)
- Constructor
- Parameters:
request
- The Request to be wrapped.requestURI
- The URI.queryString
- The query String.env
- The current Environment.rawMode
- If true only parameters from the wrapper will be returned.
getParameter
public String getParameter(String name)
- Specified by:
getParameter
in interface org.apache.cocoon.environment.Request
- Overrides:
getParameter
in class AbstractRequestWrapper
getParameterNames
public Enumeration getParameterNames()
- Specified by:
getParameterNames
in interface org.apache.cocoon.environment.Request
- Overrides:
getParameterNames
in class AbstractRequestWrapper
getParameterValues
public String[] getParameterValues(String name)
- Specified by:
getParameterValues
in interface org.apache.cocoon.environment.Request
- Overrides:
getParameterValues
in class AbstractRequestWrapper
getQueryString
public String getQueryString()
- Specified by:
getQueryString
in interface org.apache.cocoon.environment.Request
- Overrides:
getQueryString
in class AbstractRequestWrapper
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURI
in interface org.apache.cocoon.environment.Request
- Overrides:
getRequestURI
in class AbstractRequestWrapper
getSitemapURI
public String getSitemapURI()
- Specified by:
getSitemapURI
in interface org.apache.cocoon.environment.Request
- Overrides:
getSitemapURI
in class AbstractRequestWrapper
getSitemapURIPrefix
public String getSitemapURIPrefix()
- Specified by:
getSitemapURIPrefix
in interface org.apache.cocoon.environment.Request
- Overrides:
getSitemapURIPrefix
in class AbstractRequestWrapper
- See Also:
Request.getSitemapURIPrefix()
getSitemapPath
public String getSitemapPath()
- Specified by:
getSitemapPath
in interface org.apache.cocoon.environment.Request
- Overrides:
getSitemapPath
in class AbstractRequestWrapper
setRequestURI
public void setRequestURI(String prefix,
String uri)
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.