Interface ResponseMarshaler.Builder.ServiceUnavailableHandler
- 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.forServiceUnavailable(Request, ResourceMethod).- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionhandle(@NonNull Request request, @Nullable ResourceMethod resourceMethod) Prepares a response for a request that triggers an HTTP 503 Service Unavailable.
-
Method Details
-
handle
@NonNull MarshaledResponse handle(@NonNull Request request, @Nullable ResourceMethod resourceMethod) Prepares a response for a request that triggers an HTTP 503 Service Unavailable.Detailed documentation is available at https://www.soklet.com/docs/response-writing#503-service-unavailable.
- 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
-