FileDocCategorySizeDatePackage
HttpServletRequestWrapper.javaAPI DocGlassfish v2 API9018Fri May 04 22:34:20 BST 2007javax.servlet.http

HttpServletRequestWrapper

public class HttpServletRequestWrapper extends ServletRequestWrapper implements HttpServletRequest
Provides a convenient implementation of the HttpServletRequest 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.
see
javax.servlet.http.HttpServletRequest
since
v 2.3

Fields Summary
Constructors Summary
public HttpServletRequestWrapper(HttpServletRequest request)
Constructs a request object wrapping the given request.

throws
java.lang.IllegalArgumentException if the request is null

	    super(request);
    
Methods Summary
private javax.servlet.http.HttpServletRequest_getHttpServletRequest()

	return (HttpServletRequest) super.getRequest();
    
public java.lang.StringgetAuthType()
The default behavior of this method is to return getAuthType() on the wrapped request object.

	return this._getHttpServletRequest().getAuthType();
    
public java.lang.StringgetContextPath()
The default behavior of this method is to return getContextPath() on the wrapped request object.

	return this._getHttpServletRequest().getContextPath();
    
public javax.servlet.http.Cookie[]getCookies()
The default behavior of this method is to return getCookies() on the wrapped request object.

	return this._getHttpServletRequest().getCookies();
    
public longgetDateHeader(java.lang.String name)
The default behavior of this method is to return getDateHeader(String name) on the wrapped request object.

	return this._getHttpServletRequest().getDateHeader(name);
    
public java.lang.StringgetHeader(java.lang.String name)
The default behavior of this method is to return getHeader(String name) on the wrapped request object.

	return this._getHttpServletRequest().getHeader(name);
    
public java.util.EnumerationgetHeaderNames()
The default behavior of this method is to return getHeaderNames() on the wrapped request object.

	return this._getHttpServletRequest().getHeaderNames();
    
public java.util.EnumerationgetHeaders(java.lang.String name)
The default behavior of this method is to return getHeaders(String name) on the wrapped request object.

	return this._getHttpServletRequest().getHeaders(name);
    
public intgetIntHeader(java.lang.String name)
The default behavior of this method is to return getIntHeader(String name) on the wrapped request object.

	return this._getHttpServletRequest().getIntHeader(name);
    
public java.lang.StringgetMethod()
The default behavior of this method is to return getMethod() on the wrapped request object.

	return this._getHttpServletRequest().getMethod();
    
public java.lang.StringgetPathInfo()
The default behavior of this method is to return getPathInfo() on the wrapped request object.

	return this._getHttpServletRequest().getPathInfo();
    
public java.lang.StringgetPathTranslated()
The default behavior of this method is to return getPathTranslated() on the wrapped request object.

	return this._getHttpServletRequest().getPathTranslated();
    
public java.lang.StringgetQueryString()
The default behavior of this method is to return getQueryString() on the wrapped request object.

	return this._getHttpServletRequest().getQueryString();
    
public java.lang.StringgetRemoteUser()
The default behavior of this method is to return getRemoteUser() on the wrapped request object.

	return this._getHttpServletRequest().getRemoteUser();
    
public java.lang.StringgetRequestURI()
The default behavior of this method is to return getRequestURI() on the wrapped request object.

	return this._getHttpServletRequest().getRequestURI();
    
public java.lang.StringBuffergetRequestURL()
The default behavior of this method is to return getRequestURL() on the wrapped request object.

	return this._getHttpServletRequest().getRequestURL();
    
public java.lang.StringgetRequestedSessionId()
The default behavior of this method is to return getRequestedSessionId() on the wrapped request object.

	return this._getHttpServletRequest().getRequestedSessionId();
    
public java.lang.StringgetServletPath()
The default behavior of this method is to return getServletPath() on the wrapped request object.

	return this._getHttpServletRequest().getServletPath();
    
public javax.servlet.http.HttpSessiongetSession(boolean create)
The default behavior of this method is to return getSession(boolean create) on the wrapped request object.

	return this._getHttpServletRequest().getSession(create);
    
public javax.servlet.http.HttpSessiongetSession()
The default behavior of this method is to return getSession() on the wrapped request object.

	return this._getHttpServletRequest().getSession();
    
public java.security.PrincipalgetUserPrincipal()
The default behavior of this method is to return getUserPrincipal() on the wrapped request object.

	return this._getHttpServletRequest().getUserPrincipal();
    
public booleanisRequestedSessionIdFromCookie()
The default behavior of this method is to return isRequestedSessionIdFromCookie() on the wrapped request object.

	return this._getHttpServletRequest().isRequestedSessionIdFromCookie();
    
public booleanisRequestedSessionIdFromURL()
The default behavior of this method is to return isRequestedSessionIdFromURL() on the wrapped request object.

	return this._getHttpServletRequest().isRequestedSessionIdFromURL();
    
public booleanisRequestedSessionIdFromUrl()
The default behavior of this method is to return isRequestedSessionIdFromUrl() on the wrapped request object.

	return this._getHttpServletRequest().isRequestedSessionIdFromUrl();
    
public booleanisRequestedSessionIdValid()
The default behavior of this method is to return isRequestedSessionIdValid() on the wrapped request object.

	return this._getHttpServletRequest().isRequestedSessionIdValid();
    
public booleanisUserInRole(java.lang.String role)
The default behavior of this method is to return isUserInRole(String role) on the wrapped request object.

	return this._getHttpServletRequest().isUserInRole(role);