org.acegisecurity.securechannel
Class ChannelProcessingFilter
java.lang.Object
org.acegisecurity.securechannel.ChannelProcessingFilter
- All Implemented Interfaces:
- javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
public class ChannelProcessingFilter
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean, javax.servlet.Filter
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.
Do not use this class directly. Instead configure web.xml
to use the FilterToBeanProxy
.
- Version:
- $Id: ChannelProcessingFilter.java 1784 2007-02-24 21:00:24Z luke_t $
- Author:
- Ben Alex
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
java.io.IOException
javax.servlet.ServletException
getChannelDecisionManager
public ChannelDecisionManager getChannelDecisionManager()
getFilterInvocationDefinitionSource
public FilterInvocationDefinitionSource getFilterInvocationDefinitionSource()
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
setChannelDecisionManager
public void setChannelDecisionManager(ChannelDecisionManager channelDecisionManager)
setFilterInvocationDefinitionSource
public void setFilterInvocationDefinitionSource(FilterInvocationDefinitionSource filterInvocationDefinitionSource)
Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.