Name
ServletRequestWrapper
Synopsis
A convenience method that can be used by filter developers to modify
the behavior of a ServletRequest
object. The default
implementation of each method calls through to the original
ServletRequest
object, and methods can be selectively
overridden to provide additional functionality.
ServletRequestWrapper
objects can also be used in calls
to the forward()
and include()
methods of
RequestDispatcher
.
public class ServletRequestWrapper implements ServletRequest { // Public Constructors public ServletRequestWrapper( ServletRequest request); // Public Instance Methods public ServletRequest getRequest(); public void setRequest( ServletRequest request); // Methods Implementing ServletRequest public Object getAttribute( String name); public java.util.Enumeration getAttributeNames(); public String getCharacterEncoding(); public int getContentLength(); public String getContentType(); public ServletInputStream getInputStream( ) throws IOException; public java.util.Locale getLocale(); public java.util.Enumeration getLocales(); public String getParameter( String name); public java.util.Map getParameterMap(); public java.util.Enumeration getParameterNames(); public String[] getParameterValues( String name); public String getProtocol(); public BufferedReader getReader() throws IOException; public String getRealPath( String path); public String getRemoteAddr(); ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.