Spring Security Framework

org.springframework.security.firewall
Class FirewalledRequest

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.springframework.security.firewall.FirewalledRequest
All Implemented Interfaces:
HttpServletRequest, ServletRequest

public abstract class FirewalledRequest
extends HttpServletRequestWrapper

Request wrapper which is returned by the HttpFirewall interface.

The only difference is the reset method which allows some or all of the state to be reset by the FilterChainProxy when the request leaves the security filter chain.

Author:
Luke Taylor

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
FirewalledRequest(HttpServletRequest request)
          Constructs a request object wrapping the given request.
 
Method Summary
abstract  void reset()
          This method will be called once the request has passed through the security filter chain, when it is about to proceed to the application proper.
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, 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
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

FirewalledRequest

public FirewalledRequest(HttpServletRequest request)
Constructs a request object wrapping the given request.

Throws:
IllegalArgumentException - if the request is null
Method Detail

reset

public abstract void reset()
This method will be called once the request has passed through the security filter chain, when it is about to proceed to the application proper.

An implementation can thus choose to modify the state of the request for the security infrastructure, while still maintaining the


Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.