public abstract class RestHeadAction extends BaseRestHandler
HEAD
request handlers for a single document.Modifier and Type | Class and Description |
---|---|
static class |
RestHeadAction.Document
Handler to check for document existence.
|
static class |
RestHeadAction.Source
Handler to check for document source existence (may be disabled in the mapping).
|
MULTI_ALLOW_EXPLICIT_INDEX, parseFieldMatcher
deprecationLogger, logger, settings
Constructor and Description |
---|
RestHeadAction(Settings settings,
boolean source)
All subclasses must be registered in
NetworkModule . |
Modifier and Type | Method and Description |
---|---|
void |
handleRequest(RestRequest request,
RestChannel channel,
NodeClient client)
Handles a rest request.
|
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canTripCircuitBreaker
public RestHeadAction(Settings settings, boolean source)
NetworkModule
.settings
- injected settingssource
- false
to check for GetResponse.isExists()
.
true
to also check for GetResponse.isSourceEmpty()
.public void handleRequest(RestRequest request, RestChannel channel, NodeClient client)
RestHandler
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 request