org.jboss.portal.common.servlet
Class BufferingRequestWrapper
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.jboss.portal.common.servlet.BufferingRequestWrapper
- All Implemented Interfaces:
- javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
public class BufferingRequestWrapper
- extends javax.servlet.http.HttpServletRequestWrapper
Wrapper around a HTTPServletRequest to add attributes without affecting the actual request.
- Version:
- $Revision: 7228 $
- Author:
- Thomas Heute
Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Constructor Summary |
BufferingRequestWrapper(javax.servlet.http.HttpServletRequest servletRequest,
java.lang.String contextPath,
java.util.Locale[] locales)
|
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
getAuthType, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
Methods inherited from class javax.servlet.ServletRequestWrapper |
getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, setCharacterEncoding, setRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletRequest |
getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, setCharacterEncoding |
BufferingRequestWrapper
public BufferingRequestWrapper(javax.servlet.http.HttpServletRequest servletRequest,
java.lang.String contextPath,
java.util.Locale[] locales)
getContextPath
public java.lang.String getContextPath()
- Specified by:
getContextPath
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getContextPath
in class javax.servlet.http.HttpServletRequestWrapper
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interface javax.servlet.ServletRequest
- Overrides:
getLocale
in class javax.servlet.ServletRequestWrapper
getLocales
public java.util.Enumeration getLocales()
- Specified by:
getLocales
in interface javax.servlet.ServletRequest
- Overrides:
getLocales
in class javax.servlet.ServletRequestWrapper
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getMethod
in class javax.servlet.http.HttpServletRequestWrapper
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
- Specified by:
setAttribute
in interface javax.servlet.ServletRequest
- Overrides:
setAttribute
in class javax.servlet.ServletRequestWrapper
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute
in interface javax.servlet.ServletRequest
- Overrides:
getAttribute
in class javax.servlet.ServletRequestWrapper
removeAttribute
public void removeAttribute(java.lang.String name)
- Specified by:
removeAttribute
in interface javax.servlet.ServletRequest
- Overrides:
removeAttribute
in class javax.servlet.ServletRequestWrapper
getAttributeNames
public java.util.Enumeration getAttributeNames()
- Specified by:
getAttributeNames
in interface javax.servlet.ServletRequest
- Overrides:
getAttributeNames
in class javax.servlet.ServletRequestWrapper