Interface ResponseMarshaler.Builder.ContentTooLargeHandler
- Enclosing class:
ResponseMarshaler.Builder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function used to support pluggable implementations of
ResponseMarshaler.forContentTooLarge(Request, ResourceMethod).- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionhandle(Request request, ResourceMethod resourceMethod) Prepares a response for a request that triggers an HTTP 413 Content Too Large.
-
Method Details
-
handle
@Nonnull MarshaledResponse handle(@Nonnull Request request, @Nullable ResourceMethod resourceMethod) Prepares a response for a request that triggers an HTTP 413 Content Too Large.Detailed documentation is available at https://www.soklet.com/docs/response-writing#413-content-too-large.
- Parameters:
request- the HTTP requestresourceMethod- the Resource Method that would have handled the request, if available- Returns:
- the response to be sent over the wire
-