public final class ServletFilter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Logger |
log
Used for logging.
|
Constructor and Description |
---|
ServletFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Take this filter out of service.
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
Time the processing that is performed by all subsequent filters in the
current filter stack, including the ultimately invoked servlet.
|
void |
init(FilterConfig filterConfig)
Place this filter into service.
|
public void destroy()
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException
request
- The servlet request we are processingresponse
- The servlet response we are creatingchain
- The filter chain we are processingjava.io.IOException
- if an input/output error occursServletException
- if a servlet error occurspublic void init(FilterConfig filterConfig) throws ServletException
filterConfig
- The filter configuration objectServletException