public class ErrorFilterChain extends java.lang.Object implements FilterChain
Constructor and Description |
---|
ErrorFilterChain(int errorCode)
Create the error filter chain servlet.
|
ErrorFilterChain(int errorCode,
java.lang.String message)
Create the error filter chain servlet.
|
Modifier and Type | Method and Description |
---|---|
void |
doFilter(ServletRequest request,
ServletResponse response)
Invokes the final servlet at the end of the chain.
|
java.lang.String |
toString() |
public ErrorFilterChain(int errorCode)
errorCode
- the HTTP error codepublic ErrorFilterChain(int errorCode, java.lang.String message)
errorCode
- the HTTP error codepublic void doFilter(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
doFilter
in interface FilterChain
request
- the servlet requestresponse
- the servlet responseServletException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object