public class ChannelProcessingFilter extends Object implements org.springframework.beans.factory.InitializingBean, javax.servlet.Filter
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
.
Constructor and Description |
---|
ChannelProcessingFilter() |
Modifier and Type | Method and Description |
---|---|
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) |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public ChannelDecisionManager getChannelDecisionManager()
public FilterInvocationDefinitionSource getFilterInvocationDefinitionSource()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void setChannelDecisionManager(ChannelDecisionManager channelDecisionManager)
public void setFilterInvocationDefinitionSource(FilterInvocationDefinitionSource filterInvocationDefinitionSource)
Copyright © 2016. All rights reserved.