|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpFilterChain
HttpFilterChain extends javax.servlet.FilterChain
by providing
more information about the chain of filters invoked for a filtered request of
a resource.
Method Summary | ||
---|---|---|
void |
clearErrors()
Clears throwables from the error stack. |
|
boolean |
containsErrors()
Checks whether the error stack contains errors. |
|
void |
doFilter(ServletRequest request,
ServletResponse response)
Passes the request and response to the next filter. |
|
void |
doFilter(ServletRequest request,
ServletResponse response,
Filter filter)
Invokes the specified filter. |
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterReference<?>[] filters)
Invokes the first filter in a list of filter handles and continues with the rest as long as the preceding filter passes the request forward. |
|
Filter |
getCurrentFilter()
Gets the current filter of this chain. |
|
Pipe |
getCurrentPipe()
Gets the current pipe of this chain. |
|
List<Throwable> |
getErrors()
Gets a list of all throwables in the error stack. |
|
MBeanServer |
getMBeanServer()
Gets the MBean server. |
|
|
getNearestFilter(Class<F> clazz)
Gets the nearest registered filter of the specified class from the filter stack of this chain. |
|
|
getNextFilter(Class<F> clazz)
Gets the next registered filter of the specified class in the current pipe to be activated after the current one. |
|
|
getPreviousFilter(Class<F> clazz)
Gets the previous registered filter of the specified class activated before the current one from the filter stack of this chain. |
|
List<Filter> |
getPreviousFilters()
Gets a list of all filters activated before the current one from the filter stack of this chain. |
|
ServletRequest |
getRequest()
Gets the active request. |
|
ServletResponse |
getResponse()
Gets the active response. |
|
boolean |
isInvalidatedSession()
Checks whether the active session is invalidated. |
|
Throwable |
popError()
Pops a throwable from the error stack. |
|
void |
pushError(Throwable error)
Pushes a throwable to the error stack without throwing one. |
|
void |
setInvalidatedSession(boolean flag)
Sets whether the active session is invalidated. |
|
void |
terminate()
Terminates the filter chain. |
Method Detail |
---|
ServletRequest getRequest()
ServletResponse getResponse()
boolean isInvalidatedSession()
void setInvalidatedSession(boolean flag)
flag
- true if invalidated, false otherwise.Pipe getCurrentPipe()
Filter getCurrentFilter()
<F extends Filter> F getPreviousFilter(Class<F> clazz)
F
- the filter type.clazz
- the class or interface of the filter.
List<Filter> getPreviousFilters()
<F extends Filter> F getNextFilter(Class<F> clazz)
F
- the filter type.clazz
- the class or interface of the filter.
<F extends Filter> F getNearestFilter(Class<F> clazz)
F
- the filter type.clazz
- the class or interface of the filter.
MBeanServer getMBeanServer()
List<Throwable> getErrors()
void pushError(Throwable error)
error
- the throwable.Throwable popError()
boolean containsErrors()
void clearErrors()
void doFilter(ServletRequest request, ServletResponse response) throws ServletException, IOException
doFilter
in interface FilterChain
request
- the request to pass along in the chain.response
- the response to pass along in the chain.
ServletException
- for servlet errors.
IOException
- for general errors.void doFilter(ServletRequest request, ServletResponse response, Filter filter) throws ServletException, IOException
request
- the request to pass along in the chain.response
- the response to pass along in the chain.filter
- the filter to invoke.
ServletException
- for servlet errors.
IOException
- for general errors.void doFilter(ServletRequest request, ServletResponse response, FilterReference<?>[] filters) throws ServletException, IOException
request
- the request to pass along in the chain.response
- the response to pass along in the chain.filters
- an array of filter references.
ServletException
- for servlet errors.
IOException
- for general errors.void terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |