Class HttpServiceErrorHandlerHelper
java.lang.Object
org.eclipse.jetty.osgi.httpservice.HttpServiceErrorHandlerHelper
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javax.servlet.http.HttpServletstatic voidsetHttpServiceErrorHandler(javax.servlet.http.HttpServlet servlet)
-
Constructor Details
-
HttpServiceErrorHandlerHelper
public HttpServiceErrorHandlerHelper()
-
-
Method Details
-
getCustomErrorHandler
public static javax.servlet.http.HttpServlet getCustomErrorHandler() -
setHttpServiceErrorHandler
public static void setHttpServiceErrorHandler(javax.servlet.http.HttpServlet servlet)
-