Interface ResponseMarshaler.Builder.ResourceMethodHandler
- 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.forResourceMethod(Request, Response, ResourceMethod).- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionhandle(Request request, Response response, ResourceMethod resourceMethod) Prepares a response for the scenario in which the request was matched to a Resource Method and executed non-exceptionally.
-
Method Details
-
handle
@Nonnull MarshaledResponse handle(@Nonnull Request request, @Nonnull Response response, @Nonnull ResourceMethod resourceMethod) Prepares a response for the scenario in which the request was matched to a Resource Method and executed non-exceptionally.Detailed documentation is available at https://www.soklet.com/docs/response-writing#resource-method.
- Parameters:
request- the HTTP requestresponse- the response provided by the Resource Method that handled the requestresourceMethod- the Resource Method that handled the request- Returns:
- the response to be sent over the wire
-