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 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
-