Class ContentLengthExceededHandler
java.lang.Object
io.micronaut.http.server.exceptions.ContentLengthExceededHandler
- All Implemented Interfaces:
ExceptionHandler<ContentLengthExceededException,
HttpResponse>
@Singleton
@Produces
public class ContentLengthExceededHandler
extends Object
implements ExceptionHandler<ContentLengthExceededException,HttpResponse>
Default handler for
ContentLengthExceededException
errors.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Constructor Summary
ConstructorDescriptionContentLengthExceededHandler
(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionhandle
(HttpRequest request, ContentLengthExceededException exception) Handles an exception and returns the result.
-
Constructor Details
-
ContentLengthExceededHandler
Constructor.- Parameters:
responseProcessor
- Error Response Processor
-
-
Method Details
-
handle
Description copied from interface:ExceptionHandler
Handles an exception and returns the result.- Specified by:
handle
in interfaceExceptionHandler<ContentLengthExceededException,
HttpResponse> - Parameters:
request
- The requestexception
- The exception type- Returns:
- The result
-