public class ChannelDecisionManagerImpl extends Object implements ChannelDecisionManager, org.springframework.beans.factory.InitializingBean
ChannelDecisionManager
.Iterates through each configured ChannelProcessor
.
If a ChannelProcessor
has any issue with the security of the request, it should cause a redirect,
exception or whatever other action is appropriate for the ChannelProcessor
implementation.
Once any response is committed (ie a redirect is written to the response object), the
ChannelDecisionManagerImpl
will not iterate through any further ChannelProcessor
s.
Constructor and Description |
---|
ChannelDecisionManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
decide(FilterInvocation invocation,
ConfigAttributeDefinition config)
Decided whether the presented
FilterInvocation provides the appropriate level of channel
security based on the requested ConfigAttributeDefinition . |
List |
getChannelProcessors() |
void |
setChannelProcessors(List newList) |
boolean |
supports(ConfigAttribute attribute)
Indicates whether this
ChannelDecisionManager is able to process the passed
ConfigAttribute . |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void decide(FilterInvocation invocation, ConfigAttributeDefinition config) throws IOException, javax.servlet.ServletException
ChannelDecisionManager
FilterInvocation
provides the appropriate level of channel
security based on the requested ConfigAttributeDefinition
.decide
in interface ChannelDecisionManager
invocation
- DOCUMENT ME!config
- DOCUMENT ME!IOException
- DOCUMENT ME!javax.servlet.ServletException
- DOCUMENT ME!public List getChannelProcessors()
public void setChannelProcessors(List newList)
public boolean supports(ConfigAttribute attribute)
ChannelDecisionManager
ChannelDecisionManager
is able to process the passed
ConfigAttribute
.This allows the ChannelProcessingFilter
to check every
configuration attribute can be consumed by the configured ChannelDecisionManager
.
supports
in interface ChannelDecisionManager
attribute
- a configuration attribute that has been configured against the
ChannelProcessingFilter
ChannelDecisionManager
can support the passed configuration attributeCopyright © 2018. All rights reserved.