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, nodeName
protected final ParseFieldMatcher parseFieldMatcher
protected BaseRestHandler(Settings settings, RestController controller, Client client)
public final void handleRequest(RestRequest request, RestChannel channel) throws Exception
handleRequest
in interface RestHandler
Exception
protected abstract void handleRequest(RestRequest request, RestChannel channel, Client client) throws Exception
Exception
public boolean canTripCircuitBreaker()
canTripCircuitBreaker
in interface RestHandler
Copyright © 2009–2016. All rights reserved.