Name
HttpServletRequestWrapper
Synopsis
This is a convenience class that can be used by filter developers to modify
the behavior of a HttpServletRequest
object. The default
implementation of each method calls through to the original
HttpServletRequest
object, and methods can be selectively
overridden to provide additional functionality.
HttpServletRequestWrapper
objects
can also be used in calls to the forward()
and
include()
methods of
RequestDispatcher
.
public class HttpServletRequestWrapper extends ServletRequestWrapper implements HttpServletRequest { // Public Constructors public HttpServletRequestWrapper( HttpServletRequest request); // Methods Implementing HttpServletRequest public String getAuthType(); public String getContextPath(); public Cookie[] getCookies(); public long getDateHeader( String name); public String getHeader( String name); public java.util.Enumeration getHeaderNames(); public java.util.Enumeration getHeaders( String name); public int getIntHeader( String name); public String getMethod(); public String getPathInfo(); public String getPathTranslated(); public String getQueryString(); public String getRemoteUser(); public String getRequestedSessionId(); public String getRequestURI(); public StringBuffer getRequestURL(); public String getServletPath(); public HttpSession getSession(); public HttpSession getSession( boolean create); public java.security.Principal ...
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.