Class ContentLengthExceededHandler
java.lang.Object
io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler<ContentLengthExceededException>
io.micronaut.http.server.exceptions.ContentLengthExceededHandler
- All Implemented Interfaces:
ExceptionHandler<ContentLengthExceededException,
HttpResponse<?>>
@Singleton
@Produces
public class ContentLengthExceededHandler
extends ErrorResponseProcessorExceptionHandler<ContentLengthExceededException>
Default handler for
ContentLengthExceededException
errors.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from class io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler
responseProcessor
-
Constructor Summary
ConstructorDescriptionContentLengthExceededHandler
(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull MutableHttpResponse<?>
createResponse
(ContentLengthExceededException exception) Methods inherited from class io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler
handle
-
Constructor Details
-
ContentLengthExceededHandler
Constructor.- Parameters:
responseProcessor
- Error Response Processor
-
-
Method Details
-
createResponse
@NonNull protected @NonNull MutableHttpResponse<?> createResponse(ContentLengthExceededException exception) - Specified by:
createResponse
in classErrorResponseProcessorExceptionHandler<ContentLengthExceededException>
-