org.acegisecurity.securechannel
Class ChannelProcessingFilter

java.lang.Object
  extended by org.acegisecurity.securechannel.ChannelProcessingFilter
All Implemented Interfaces:
javax.servlet.Filter, org.springframework.beans.factory.InitializingBean

public class ChannelProcessingFilter
extends 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

Constructor Summary
ChannelProcessingFilter()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 ChannelDecisionManager getChannelDecisionManager()
           
 FilterInvocationDefinitionSource getFilterInvocationDefinitionSource()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 void setChannelDecisionManager(ChannelDecisionManager channelDecisionManager)
           
 void setFilterInvocationDefinitionSource(FilterInvocationDefinitionSource filterInvocationDefinitionSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelProcessingFilter

public ChannelProcessingFilter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
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 IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
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-2012 Interface21, Inc. All Rights Reserved.