Package org.elasticsearch.rest
Class FilterRestHandler
java.lang.Object
org.elasticsearch.rest.FilterRestHandler
- All Implemented Interfaces:
RestHandler
- Direct Known Subclasses:
DeprecationRestHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.rest.RestHandler
RestHandler.Route -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates if the RestHandler supports working with pooled buffers.booleanControls whether requests handled by this class are allowed to to access system indices by default.booleanReturns the concrete RestHandler for this RestHandler.protected RestHandlerroutes()The list ofRestHandler.Routes that this RestHandler is responsible for handling.booleanIndicates if the RestHandler supports content as a stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.rest.RestHandler
handleRequest
-
Constructor Details
-
FilterRestHandler
-
-
Method Details
-
getDelegate
-
getConcreteRestHandler
Description copied from interface:RestHandlerReturns the concrete RestHandler for this RestHandler. That is, if this is a delegating RestHandler it returns the delegate. Otherwise it returns itself.- Specified by:
getConcreteRestHandlerin interfaceRestHandler- Returns:
- The underlying RestHandler
-
routes
Description copied from interface:RestHandlerThe list ofRestHandler.Routes that this RestHandler is responsible for handling.- Specified by:
routesin interfaceRestHandler
-
allowSystemIndexAccessByDefault
public boolean allowSystemIndexAccessByDefault()Description copied from interface:RestHandlerControls whether requests handled by this class are allowed to to access system indices by default.- Specified by:
allowSystemIndexAccessByDefaultin interfaceRestHandler- Returns:
trueif requests handled by this class should be allowed to access system indices.
-
canTripCircuitBreaker
public boolean canTripCircuitBreaker()- Specified by:
canTripCircuitBreakerin interfaceRestHandler
-
allowsUnsafeBuffers
public boolean allowsUnsafeBuffers()Description copied from interface:RestHandlerIndicates if the RestHandler supports working with pooled buffers. If the request handler will not escape the returnRestRequest.content()or any buffers extracted from it then there is no need to make a copies of any pooled buffers in theRestRequestinstance before passing a request to this handler. If this instance does not support pooled/unsafe buffersRestRequest.ensureSafeBuffers()should be called on any request before passing it toRestHandler.handleRequest(org.elasticsearch.rest.RestRequest, org.elasticsearch.rest.RestChannel, org.elasticsearch.client.node.NodeClient).- Specified by:
allowsUnsafeBuffersin interfaceRestHandler- Returns:
- true iff the handler supports requests that make use of pooled buffers
-
supportsContentStream
public boolean supportsContentStream()Description copied from interface:RestHandlerIndicates if the RestHandler supports content as a stream. A stream would be multiple objects delineated byXContent.streamSeparator(). If a handler returns true this will affect the types of content that can be sent to this endpoint.- Specified by:
supportsContentStreamin interfaceRestHandler
-