|
||||||||||
| 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 of this chain. |
boolean |
containsErrors()
Checks whether this chain 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,
FilterMBeanReference[] 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. |
Throwable |
getError()
Gets the last throwable from the error stack of this chain. |
List |
getErrors()
Gets a list of all throwables in the error stack of this chain. |
MBeanServer |
getMBeanServer()
Gets the MBean server. |
Filter |
getNearestFilter(Class clazz)
Gets the nearest registered filter of the specified class from the filter stack of this chain. |
Filter |
getNextFilter(Class clazz)
Gets the next registered filter of the specified class in the current pipe to be activated after the current one. |
Filter |
getPreviousFilter(Class clazz)
Gets the previous registered filter of the specified class activated before the current one from the filter stack of this chain. |
List |
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 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 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()
Filter getPreviousFilter(Class clazz)
clazz - the class or interface of the filter or null for any.
List getPreviousFilters()
Filter getNextFilter(Class clazz)
clazz - the class or interface of the filter or null for any.
Filter getNearestFilter(Class clazz)
clazz - the class or interface of the filter or null for any.
MBeanServer getMBeanServer()
Throwable getError()
List getErrors()
void pushError(Throwable error)
error - the reason throwable.Throwable popError()
boolean containsErrors()
void clearErrors()
void doFilter(ServletRequest request,
ServletResponse response)
throws ServletException,
IOException
doFilter in interface FilterChainrequest - 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,
FilterMBeanReference[] 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 | |||||||||