org.eclipse.jetty.osgi.httpservice
Class HttpServiceErrorPageErrorHandler
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AggregateLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.ErrorHandler
org.eclipse.jetty.servlet.ErrorPageErrorHandler
org.eclipse.jetty.osgi.httpservice.HttpServiceErrorPageErrorHandler
- All Implemented Interfaces:
- org.eclipse.jetty.server.Handler, Destroyable, Dumpable, LifeCycle
public class HttpServiceErrorPageErrorHandler
- extends ErrorPageErrorHandler
Extended error page handler.
Makes it easy to plug a servlet to handle errors thrown by the HttpService or
to use Jetty's ErrorPageErrorHandler API to plug custom error pages.
| Methods inherited from class org.eclipse.jetty.server.handler.ErrorHandler |
getCacheControl, handleErrorPage, isShowStacks, setCacheControl, setShowStacks, write, writeErrorPage, writeErrorPageBody, writeErrorPageHead, writeErrorPageMessage, writeErrorPageStacks |
| Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler |
destroy, dumpThis, getServer, setServer |
| Methods inherited from class org.eclipse.jetty.util.component.AggregateLifeCycle |
addBean, dump, dump, dump, dump, dump, dumpStdErr, getBean, getBeans, getBeans, removeBean, removeBeans |
| Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServiceErrorPageErrorHandler
public HttpServiceErrorPageErrorHandler()
getInstance
public static HttpServiceErrorPageErrorHandler getInstance()
handle
public void handle(String target,
org.eclipse.jetty.server.Request baseRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Specified by:
handle in interface org.eclipse.jetty.server.Handler- Overrides:
handle in class ErrorPageErrorHandler
- Throws:
IOException
doStop
protected void doStop()
throws Exception
- Overrides:
doStop in class ErrorPageErrorHandler
- Throws:
Exception
Copyright © 2011 FuseSource, Corp.. All Rights Reserved.