org.acegisecurity.wrapper
Class SecurityContextHolderAwareRequestFilter
java.lang.Object
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class SecurityContextHolderAwareRequestFilter
- extends Object
- implements javax.servlet.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 javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
setPortResolver
public void setPortResolver(PortResolver portResolver)
setWrapperClass
public void setWrapperClass(Class wrapperClass)
Copyright © 2004-2007 Interface21, Inc. All Rights Reserved.