java.lang.Object
org.elasticsearch.rest.RestHandler.Route
- Enclosing interface:
RestHandler
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRoute
(RestRequest.Method method, String path) Constructs a Route that pairs an HTTP method with an associated path. -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(RestRequest.Method method, String path) org.apache.logging.log4j.Level
getPath()
boolean
boolean
-
Constructor Details
-
Route
Constructs a Route that pairs an HTTP method with an associated path.This is sufficient for most routes in Elasticsearch, like "GET /", "PUT /_cluster/settings", or "POST my_index/_close".
- Parameters:
method
- the method, e.g. GETpath
- the path, e.g. "/"
-
-
Method Details
-
builder
-
getPath
-
getMethod
-
getRestApiVersion
-
getDeprecationMessage
-
getDeprecationLevel
public org.apache.logging.log4j.Level getDeprecationLevel() -
isDeprecated
public boolean isDeprecated() -
getReplacedRoute
-
hasReplacement
public boolean hasReplacement()
-