ccs.http
Class ExceptionHandler

java.lang.Object
  extended by org.mortbay.http.handler.AbstractHttpHandler
      extended by ccs.http.AbstractXhtmlHandler
          extended by ccs.http.ExceptionHandler
All Implemented Interfaces:
java.io.Serializable, org.mortbay.http.HttpHandler, org.mortbay.util.LifeCycle

public class ExceptionHandler
extends AbstractXhtmlHandler

Handles exceptions thrown during the course of processing the request.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ccs.http.AbstractXhtmlHandler
AbstractXhtmlHandler.XHMode
 
Field Summary
static java.lang.String THROWATTR
          The name of the attribute containing the exception moving down the chain until it gets to the exception handler.
 
Fields inherited from class ccs.http.AbstractXhtmlHandler
isEnabled, mrp
 
Constructor Summary
ExceptionHandler(ExceptionHelper helper)
           
 
Method Summary
protected  AbstractXhtmlHandler.XHMode getDefaultXHMode()
          The XHTML handling mode to use if no request-specific handling mode has been set.
 void handle(java.lang.String subpath, java.lang.String pathParams, org.mortbay.http.HttpRequest ha, org.mortbay.http.HttpResponse hq)
           
 
Methods inherited from class ccs.http.AbstractXhtmlHandler
isXhtmlUA, makeUncacheable, sendBuffer, sendCDBFile, sendStream, setXHMode
 
Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler
getHttpContext, getName, handleTrace, initialize, isStarted, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

THROWATTR

public static final java.lang.String THROWATTR
The name of the attribute containing the exception moving down the chain until it gets to the exception handler.

See Also:
Constant Field Values
Constructor Detail

ExceptionHandler

public ExceptionHandler(ExceptionHelper helper)
Method Detail

handle

public void handle(java.lang.String subpath,
                   java.lang.String pathParams,
                   org.mortbay.http.HttpRequest ha,
                   org.mortbay.http.HttpResponse hq)
            throws org.mortbay.http.HttpException,
                   java.io.IOException
Throws:
org.mortbay.http.HttpException
java.io.IOException

getDefaultXHMode

protected AbstractXhtmlHandler.XHMode getDefaultXHMode()
Description copied from class: AbstractXhtmlHandler
The XHTML handling mode to use if no request-specific handling mode has been set.

Specified by:
getDefaultXHMode in class AbstractXhtmlHandler