com.caucho.server.dispatch
Class ErrorFilterChain

java.lang.Object
  extended by com.caucho.server.dispatch.ErrorFilterChain
All Implemented Interfaces:
FilterChain

public class ErrorFilterChain
extends java.lang.Object
implements FilterChain

Responds with an error code.


Constructor Summary
ErrorFilterChain(int errorCode)
          Create the error filter chain servlet.
ErrorFilterChain(int errorCode, java.lang.String message)
          Create the error filter chain servlet.
 
Method Summary
 void doFilter(ServletRequest request, ServletResponse response)
          Invokes the final servlet at the end of the chain.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorFilterChain

public ErrorFilterChain(int errorCode)
Create the error filter chain servlet.

Parameters:
errorCode - the HTTP error code

ErrorFilterChain

public ErrorFilterChain(int errorCode,
                        java.lang.String message)
Create the error filter chain servlet.

Parameters:
errorCode - the HTTP error code
Method Detail

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response)
              throws ServletException,
                     java.io.IOException
Invokes the final servlet at the end of the chain.

Specified by:
doFilter in interface FilterChain
Parameters:
request - the servlet request
response - the servlet response
Throws:
ServletException
java.io.IOException
Since:
Servlet 2.3

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object