Package org.elasticsearch.rest
Class RestHandler.Route
java.lang.Object
org.elasticsearch.rest.RestHandler.Route
- Enclosing interface:
- RestHandler
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionRoute(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)
getPath()
org.elasticsearch.core.RestApiVersion
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
public org.elasticsearch.core.RestApiVersion getRestApiVersion() -
getDeprecationMessage
-
isDeprecated
public boolean isDeprecated() -
getReplacedRoute
-
isReplacement
public boolean isReplacement()
-