public interface RestHandler
| Modifier and Type | Method and Description |
|---|---|
default boolean |
canTripCircuitBreaker() |
void |
handleRequest(RestRequest request,
RestChannel channel,
NodeClient client)
Handles a rest request.
|
default boolean |
supportsContentStream()
Indicates if the RestHandler supports content as a stream.
|
void handleRequest(RestRequest request, RestChannel channel, NodeClient client) throws java.lang.Exception
request - The request to handlechannel - The channel to write the request response toclient - A client to use to make internal requests on behalf of the original requestjava.lang.Exceptiondefault boolean canTripCircuitBreaker()
default boolean supportsContentStream()
XContent.streamSeparator(). If a handler returns true this will affect the types of content that can be sent to
this endpoint.