public abstract class BaseRestHandler extends AbstractComponent implements RestHandler
This handler makes sure that the headers & context of the handled requests are copied over to
the transport requests executed by the associated client. While the context is fully copied over, not all the headers
are copied, but a selected few. It is possible to control what headers are copied over by registering them using
RestController.registerRelevantHeaders(String...)
| Modifier and Type | Field and Description |
|---|---|
protected ParseFieldMatcher |
parseFieldMatcher |
deprecationLogger, logger, settings| Modifier | Constructor and Description |
|---|---|
protected |
BaseRestHandler(Settings settings,
RestController controller,
Client client) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTripCircuitBreaker() |
void |
handleRequest(RestRequest request,
RestChannel channel) |
protected abstract void |
handleRequest(RestRequest request,
RestChannel channel,
Client client) |
logDeprecatedSetting, logRemovedSetting, nodeNameprotected final ParseFieldMatcher parseFieldMatcher
protected BaseRestHandler(Settings settings, RestController controller, Client client)
public final void handleRequest(RestRequest request, RestChannel channel) throws Exception
handleRequest in interface RestHandlerExceptionprotected abstract void handleRequest(RestRequest request, RestChannel channel, Client client) throws Exception
Exceptionpublic boolean canTripCircuitBreaker()
canTripCircuitBreaker in interface RestHandlerCopyright © 2009–2017. All rights reserved.