org.acegisecurity.wrapper
Class SecurityContextHolderAwareRequestFilter
java.lang.Object
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter
- All Implemented Interfaces:
- Filter
public class SecurityContextHolderAwareRequestFilter
- extends Object
- implements Filter
A Filter which populates the ServletRequest with a new request wrapper.
Several
request wrappers are included with the framework. The simplest version is SecurityContextHolderAwareRequestWrapper. A more complex and powerful request wrapper is SavedRequestAwareWrapper. The latter is also the default.
To modify the wrapper used, call setWrapperClass(Class).
Any request wrapper configured for instantiation by this class must provide a public constructor that
accepts two arguments, being a HttpServletRequest and a PortResolver.
- Version:
- $Id: SecurityContextHolderAwareRequestFilter.java 1496 2006-05-23 13:38:33Z benalex $
- Author:
- Orlando Garcia Carmona, Ben Alex
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityContextHolderAwareRequestFilter
public SecurityContextHolderAwareRequestFilter()
destroy
public void destroy()
- Specified by:
destroy in interface Filter
doFilter
public void doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain filterChain)
throws IOException,
ServletException
- Specified by:
doFilter in interface Filter
- Throws:
IOException
ServletException
init
public void init(FilterConfig filterConfig)
throws ServletException
- Specified by:
init in interface Filter
- Throws:
ServletException
setPortResolver
public void setPortResolver(PortResolver portResolver)
setWrapperClass
public void setWrapperClass(Class wrapperClass)
Copyright © 2004-2006 Acegi Technology Pty Limited. All Rights Reserved.