com.caucho.server.security
Class ErrorFilter

java.lang.Object
  extended by com.caucho.server.security.ErrorFilter
All Implemented Interfaces:
Filter

public class ErrorFilter
extends java.lang.Object
implements Filter


Constructor Summary
ErrorFilter()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorFilter

public ErrorFilter()
Method Detail

setErrorCode

public void setErrorCode(int code)

setException

public void setException(ServletException exception)

init

public void init(FilterConfig config)
Description copied from interface: Filter
Initialize the filter.

Specified by:
init in interface Filter

destroy

public void destroy()
Description copied from interface: Filter
Cleanup the filter.

Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws ServletException,
                     java.io.IOException
Description copied from interface: Filter
doFilter performs the actual work of a filter, either modifying the request or the response. It will typically call the chain.doFilter() to invoke the next filter in the chain.

Specified by:
doFilter in interface Filter
Parameters:
request - the servlet request
response - the servlet response
chain - the next filter in the chain
Throws:
ServletException
java.io.IOException