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 |
---|---|
static Setting<java.lang.Boolean> |
MULTI_ALLOW_EXPLICIT_INDEX |
protected ParseFieldMatcher |
parseFieldMatcher |
deprecationLogger, logger, settings
Modifier | Constructor and Description |
---|---|
protected |
BaseRestHandler(Settings settings,
Client client) |
Modifier and Type | Method and Description |
---|---|
void |
handleRequest(RestRequest request,
RestChannel channel) |
protected abstract void |
handleRequest(RestRequest request,
RestChannel channel,
Client client) |
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canTripCircuitBreaker
public static final Setting<java.lang.Boolean> MULTI_ALLOW_EXPLICIT_INDEX
protected final ParseFieldMatcher parseFieldMatcher
public final void handleRequest(RestRequest request, RestChannel channel) throws java.lang.Exception
handleRequest
in interface RestHandler
java.lang.Exception
protected abstract void handleRequest(RestRequest request, RestChannel channel, Client client) throws java.lang.Exception
java.lang.Exception