@Singleton @Produces public class ContentLengthExceededHandler extends Object implements ExceptionHandler<ContentLengthExceededException,HttpResponse>
ContentLengthExceededException
errors.Constructor and Description |
---|
ContentLengthExceededHandler(ErrorResponseProcessor<?> responseProcessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
handle(HttpRequest request,
ContentLengthExceededException exception)
Handles an exception and returns the result.
|
@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