public class LifecycleDelegatingFilterProxy extends BypassableDelegatingFilterProxy
BypassableDelegatingFilterProxy for use with the LifecycleDispatcherServlet. This
proxy automatically bypasses the filter when requests are received during application startup.| Constructor and Description |
|---|
LifecycleDelegatingFilterProxy() |
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
Bypasses execution of the filter if no
WebApplicationContext is available, delegating directly to the
filter chain, or performs normal filtering if a context is available. |
initDelegatedestroy, destroyDelegate, findWebApplicationContext, getContextAttribute, getTargetBeanName, initFilterBean, invokeDelegate, isTargetFilterLifecycle, setContextAttribute, setTargetBeanName, setTargetFilterLifecyclepublic void doFilter(@Nonnull javax.servlet.ServletRequest request, @Nonnull javax.servlet.ServletResponse response, @Nonnull javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
BypassableDelegatingFilterProxyWebApplicationContext is available, delegating directly to the
filter chain, or performs normal filtering if a context is available.
Once a WebApplicationContext is available once, this filter will never bypass again (even if, for some
reason, the context later disappears).
doFilter in interface javax.servlet.FilterdoFilter in class BypassableDelegatingFilterProxyrequest - the servlet request to filterresponse - the servlet responsefilterChain - the filter chainjavax.servlet.ServletException - May be thrown by the base class or the chain; never thrown locally.IOException - May be thrown by the base class or the chain; never thrown locally.Copyright © 2017 Atlassian. All rights reserved.