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