org.springframework.security.wrapper
Class SecurityContextHolderAwareRequestFilter
java.lang.Object
org.springframework.security.ui.SpringSecurityFilter
org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter
- All Implemented Interfaces:
- javax.servlet.Filter, org.springframework.core.Ordered
public class SecurityContextHolderAwareRequestFilter
- extends SpringSecurityFilter
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$
- Author:
- Orlando Garcia Carmona, Ben Alex
| Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SecurityContextHolderAwareRequestFilter
public SecurityContextHolderAwareRequestFilter()
setPortResolver
public void setPortResolver(PortResolver portResolver)
setWrapperClass
public void setWrapperClass(java.lang.Class wrapperClass)
setRolePrefix
public void setRolePrefix(java.lang.String rolePrefix)
doFilterHttp
protected void doFilterHttp(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
doFilterHttp in class SpringSecurityFilter
- Throws:
java.io.IOException
javax.servlet.ServletException
getOrder
public int getOrder()