org.mortbay.jetty.webapp
Class WebAppContext.WebAppErrorHandler

java.lang.Object
  extended byorg.mortbay.component.AbstractLifeCycle
      extended byorg.mortbay.jetty.handler.AbstractHandler
          extended byorg.mortbay.jetty.handler.ErrorHandler
              extended byorg.mortbay.jetty.webapp.WebAppContext.WebAppErrorHandler
All Implemented Interfaces:
Handler, LifeCycle
Enclosing class:
WebAppContext

public class WebAppContext.WebAppErrorHandler
extends ErrorHandler


Field Summary
 
Fields inherited from class org.mortbay.jetty.handler.AbstractHandler
_string
 
Fields inherited from interface org.mortbay.jetty.Handler
ALL, DEFAULT, ERROR, FORWARD, INCLUDE, REQUEST
 
Constructor Summary
WebAppContext.WebAppErrorHandler()
           
 
Method Summary
 Map getErrorPages()
           
 void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch)
          Handle a request.
 void setErrorPages(Map errorPages)
           
 
Methods inherited from class org.mortbay.jetty.handler.ErrorHandler
handleErrorPage, isShowStacks, setShowStacks, writeErrorPage
 
Methods inherited from class org.mortbay.jetty.handler.AbstractHandler
doStart, doStop, getServer, setServer, toString
 
Methods inherited from class org.mortbay.component.AbstractLifeCycle
isFailed, isRunning, isStarted, isStarting, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mortbay.component.LifeCycle
isFailed, isRunning, isStarted, isStarting, isStopping, start, stop
 

Constructor Detail

WebAppContext.WebAppErrorHandler

public WebAppContext.WebAppErrorHandler()
Method Detail

getErrorPages

public Map getErrorPages()
Returns:
Returns the errorPages.

handle

public void handle(String target,
                   HttpServletRequest request,
                   HttpServletResponse response,
                   int dispatch)
            throws IOException
Description copied from interface: Handler
Handle a request.

Specified by:
handle in interface Handler
Overrides:
handle in class ErrorHandler
Throws:
IOException

setErrorPages

public void setErrorPages(Map errorPages)
Parameters:
errorPages - The errorPages to set.