Home » apache-tomcat-6.0.26-src » javax » servlet » [javadoc | source]
javax.servlet
public class: ServletRequestWrapper [javadoc | source]
java.lang.Object
   javax.servlet.ServletRequestWrapper

All Implemented Interfaces:
    ServletRequest

Direct Known Subclasses:
    HttpServletRequestWrapper

Provides a convenient implementation of the ServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.
Constructor:
 public ServletRequestWrapper(ServletRequest request) 
    Creates a ServletRequest adaptor wrapping the given request object.
    Throws:
    java.lang.IllegalArgumentException - if the request is null
Method from javax.servlet.ServletRequestWrapper Summary:
getAttribute,   getAttributeNames,   getCharacterEncoding,   getContentLength,   getContentType,   getInputStream,   getLocalAddr,   getLocalName,   getLocalPort,   getLocale,   getLocales,   getParameter,   getParameterMap,   getParameterNames,   getParameterValues,   getProtocol,   getReader,   getRealPath,   getRemoteAddr,   getRemoteHost,   getRemotePort,   getRequest,   getRequestDispatcher,   getScheme,   getServerName,   getServerPort,   isSecure,   removeAttribute,   setAttribute,   setCharacterEncoding,   setRequest
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.servlet.ServletRequestWrapper Detail:
 public Object getAttribute(String name) 
    The default behavior of this method is to call getAttribute(String name) on the wrapped request object.
 public Enumeration getAttributeNames() 
    The default behavior of this method is to return getAttributeNames() on the wrapped request object.
 public String getCharacterEncoding() 
    The default behavior of this method is to return getCharacterEncoding() on the wrapped request object.
 public int getContentLength() 
    The default behavior of this method is to return getContentLength() on the wrapped request object.
 public String getContentType() 
    The default behavior of this method is to return getContentType() on the wrapped request object.
 public ServletInputStream getInputStream() throws IOException 
    The default behavior of this method is to return getInputStream() on the wrapped request object.
 public String getLocalAddr() 
    The default behavior of this method is to return getLocalAddr() on the wrapped request object.
 public String getLocalName() 
    The default behavior of this method is to return getLocalName() on the wrapped request object.
 public int getLocalPort() 
    The default behavior of this method is to return getLocalPort() on the wrapped request object.
 public Locale getLocale() 
    The default behavior of this method is to return getLocale() on the wrapped request object.
 public Enumeration getLocales() 
    The default behavior of this method is to return getLocales() on the wrapped request object.
 public String getParameter(String name) 
    The default behavior of this method is to return getParameter(String name) on the wrapped request object.
 public Map getParameterMap() 
    The default behavior of this method is to return getParameterMap() on the wrapped request object.
 public Enumeration getParameterNames() 
    The default behavior of this method is to return getParameterNames() on the wrapped request object.
 public String[] getParameterValues(String name) 
    The default behavior of this method is to return getParameterValues(String name) on the wrapped request object.
 public String getProtocol() 
    The default behavior of this method is to return getProtocol() on the wrapped request object.
 public BufferedReader getReader() throws IOException 
    The default behavior of this method is to return getReader() on the wrapped request object.
 public String getRealPath(String path) 
    The default behavior of this method is to return getRealPath(String path) on the wrapped request object.
 public String getRemoteAddr() 
    The default behavior of this method is to return getRemoteAddr() on the wrapped request object.
 public String getRemoteHost() 
    The default behavior of this method is to return getRemoteHost() on the wrapped request object.
 public int getRemotePort() 
    The default behavior of this method is to return getRemotePort() on the wrapped request object.
 public ServletRequest getRequest() 
    Return the wrapped request object.
 public RequestDispatcher getRequestDispatcher(String path) 
    The default behavior of this method is to return getRequestDispatcher(String path) on the wrapped request object.
 public String getScheme() 
    The default behavior of this method is to return getScheme() on the wrapped request object.
 public String getServerName() 
    The default behavior of this method is to return getServerName() on the wrapped request object.
 public int getServerPort() 
    The default behavior of this method is to return getServerPort() on the wrapped request object.
 public boolean isSecure() 
    The default behavior of this method is to return isSecure() on the wrapped request object.
 public  void removeAttribute(String name) 
    The default behavior of this method is to call removeAttribute(String name) on the wrapped request object.
 public  void setAttribute(String name,
    Object o) 
    The default behavior of this method is to return setAttribute(String name, Object o) on the wrapped request object.
 public  void setCharacterEncoding(String enc) throws UnsupportedEncodingException 
    The default behavior of this method is to set the character encoding on the wrapped request object.
 public  void setRequest(ServletRequest request) 
    Sets the request object being wrapped.