public interface Filter
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Cleanup the filter.
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
doFilter performs the actual work of a filter, either modifying
the request or the response.
|
void |
init(FilterConfig filterConfig)
Initialize the filter.
|
void init(FilterConfig filterConfig) throws ServletException
ServletExceptionvoid doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, java.io.IOException
request - the servlet requestresponse - the servlet responsechain - the next filter in the chainServletExceptionjava.io.IOExceptionvoid destroy()