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.
|
default boolean |
supportsPlainText()
Deprecated.
use request parameters or bodies that can be parsed with XContent!
|
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.Exception
default boolean canTripCircuitBreaker()
@Deprecated default boolean supportsPlainText()
default boolean supportsContentStream()
XContent.streamSeparator()
. If a handler returns true this will affect the types of content that can be sent to
this endpoint.