org.springframework.security.securechannel
Class ChannelProcessingFilter
java.lang.Object
org.springframework.security.ui.SpringSecurityFilter
org.springframework.security.securechannel.ChannelProcessingFilter
- All Implemented Interfaces:
- javax.servlet.Filter, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered
public class ChannelProcessingFilter
- extends SpringSecurityFilter
- implements org.springframework.beans.factory.InitializingBean
Ensures a web request is delivered over the required channel.
Internally uses a FilterInvocation
to represent the request, so that the
FilterInvocation
-related property editors and lookup classes can be used.
Delegates the actual channel security decisions and necessary actions to the configured
ChannelDecisionManager
. If a response is committed by the ChannelDecisionManager
,
the filter chain will not proceed.
- Version:
- $Id$
- Author:
- 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 |
ChannelProcessingFilter
public ChannelProcessingFilter()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
doFilterHttp
public 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
getChannelDecisionManager
public ChannelDecisionManager getChannelDecisionManager()
getFilterInvocationDefinitionSource
public FilterInvocationDefinitionSource getFilterInvocationDefinitionSource()
setChannelDecisionManager
public void setChannelDecisionManager(ChannelDecisionManager channelDecisionManager)
setFilterInvocationDefinitionSource
public void setFilterInvocationDefinitionSource(FilterInvocationDefinitionSource filterInvocationDefinitionSource)
getOrder
public int getOrder()
- Specified by:
getOrder
in interface org.springframework.core.Ordered