@Singleton @Produces public class HttpStatusHandler extends java.lang.Object implements ExceptionHandler<HttpStatusException,HttpResponse>
HttpStatusException.| Constructor and Description |
|---|
HttpStatusHandler()
Deprecated.
Use
HttpStatusHandler(ErrorResponseProcessor) instead. |
HttpStatusHandler(ErrorResponseProcessor<?> responseProcessor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
handle(HttpRequest request,
HttpStatusException exception)
Handles an exception and returns the result.
|
@Deprecated public HttpStatusHandler()
HttpStatusHandler(ErrorResponseProcessor) instead.@Inject public HttpStatusHandler(ErrorResponseProcessor<?> responseProcessor)
responseProcessor - Error Response Processorpublic HttpResponse handle(HttpRequest request, HttpStatusException exception)
ExceptionHandlerhandle in interface ExceptionHandler<HttpStatusException,HttpResponse>request - The requestexception - The exception type