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