org.eclipse.jetty.osgi.httpservice
Class HttpServiceErrorHandlerHelper

java.lang.Object
  extended by org.eclipse.jetty.osgi.httpservice.HttpServiceErrorHandlerHelper

public class HttpServiceErrorHandlerHelper
extends Object

For jetty agnostic handling of errors issued by the HttpService. Pass a servlet to the method setHttpServiceErrorHandler. In the servlet to read the status code of the error or the message or the exception, use org.eclipse.jetty.server.Dispatch's constants: int errorCode = httpServletRequest.getAttribute(Dispatcher.ERROR_STATUS_CODE) for example.


Constructor Summary
HttpServiceErrorHandlerHelper()
           
 
Method Summary
static HttpServlet getCustomErrorHandler()
           
static void setHttpServiceErrorHandler(HttpServlet servlet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServiceErrorHandlerHelper

public HttpServiceErrorHandlerHelper()
Method Detail

getCustomErrorHandler

public static HttpServlet getCustomErrorHandler()

setHttpServiceErrorHandler

public static void setHttpServiceErrorHandler(HttpServlet servlet)


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.