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