org.acegisecurity.securechannel
Class ChannelProcessingFilter

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

public class ChannelProcessingFilter
extends Object
implements 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,v 1.5 2005/11/17 00:55:50 benalex Exp $
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

setChannelDecisionManager

public void setChannelDecisionManager(ChannelDecisionManager channelDecisionManager)

getChannelDecisionManager

public ChannelDecisionManager getChannelDecisionManager()

setFilterInvocationDefinitionSource

public void setFilterInvocationDefinitionSource(FilterInvocationDefinitionSource filterInvocationDefinitionSource)

getFilterInvocationDefinitionSource

public FilterInvocationDefinitionSource getFilterInvocationDefinitionSource()

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface 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

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException


Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.