public class FilterSecurityInterceptor extends AbstractSecurityInterceptor implements javax.servlet.Filter, org.springframework.core.Ordered
The
ObjectDefinitionSource required by this security interceptor is of type FilterInvocationDefinitionSource.
Refer to AbstractSecurityInterceptor for details on the workflow.
logger, messages| Constructor and Description |
|---|
FilterSecurityInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Not used (we rely on IoC container lifecycle services instead)
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Method that is actually called by the filter chain.
|
FilterInvocationDefinitionSource |
getObjectDefinitionSource() |
int |
getOrder() |
java.lang.Class |
getSecureObjectClass()
Indicates the type of secure objects the subclass will be presenting to
the abstract parent for processing.
|
void |
init(javax.servlet.FilterConfig arg0)
Not used (we rely on IoC container lifecycle services instead)
|
void |
invoke(FilterInvocation fi) |
boolean |
isObserveOncePerRequest()
Indicates whether once-per-request handling will be observed.
|
ObjectDefinitionSource |
obtainObjectDefinitionSource() |
void |
setObjectDefinitionSource(FilterInvocationDefinitionSource newSource) |
void |
setObserveOncePerRequest(boolean observeOncePerRequest) |
afterInvocation, afterPropertiesSet, beforeInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setRejectPublicInvocations, setRunAsManager, setValidateConfigAttributespublic void init(javax.servlet.FilterConfig arg0)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterarg0 - ignoredjavax.servlet.ServletException - never thrownpublic void destroy()
destroy in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
invoke(FilterInvocation) method.doFilter in interface javax.servlet.Filterrequest - the servlet requestresponse - the servlet responsechain - the filter chainjava.io.IOException - if the filter chain failsjavax.servlet.ServletException - if the filter chain failspublic FilterInvocationDefinitionSource getObjectDefinitionSource()
public java.lang.Class getSecureObjectClass()
AbstractSecurityInterceptorAbstractSecurityInterceptor all support the
indicated secure object class.getSecureObjectClass in class AbstractSecurityInterceptorpublic void invoke(FilterInvocation fi) throws java.io.IOException, javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletExceptionpublic boolean isObserveOncePerRequest()
true,
meaning the FilterSecurityInterceptor will only execute once-per-request. Sometimes users may wish
it to execute more than once per request, such as when JSP forwards are being used and filter security is
desired on each included fragment of the HTTP request.true (the default) if once-per-request is honoured, otherwise false if
FilterSecurityInterceptor will enforce authorizations for each and every fragment of the
HTTP request.public ObjectDefinitionSource obtainObjectDefinitionSource()
obtainObjectDefinitionSource in class AbstractSecurityInterceptorpublic void setObjectDefinitionSource(FilterInvocationDefinitionSource newSource)
public void setObserveOncePerRequest(boolean observeOncePerRequest)
public int getOrder()
getOrder in interface org.springframework.core.Ordered