Constructor and Description |
---|
ErrorFilter() |
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 config)
Initialize the filter.
|
void |
setErrorCode(int code) |
void |
setException(ServletException exception) |
public void setErrorCode(int code)
public void setException(ServletException exception)
public void init(FilterConfig config)
Filter
public void destroy()
Filter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, java.io.IOException
Filter
doFilter
in interface Filter
request
- the servlet requestresponse
- the servlet responsechain
- the next filter in the chainServletException
java.io.IOException