Package org.elasticsearch.rest
Class RestHandler.Route
java.lang.Object
org.elasticsearch.rest.RestHandler.Route
- Enclosing interface:
- RestHandler
public static class RestHandler.Route
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestHandler.Route.RouteBuilder -
Constructor Summary
Constructors Constructor Description Route(RestRequest.Method method, java.lang.String path)Constructs a Route that pairs an HTTP method with an associated path. -
Method Summary
Modifier and Type Method Description static RestHandler.Route.RouteBuilderbuilder(RestRequest.Method method, java.lang.String path)java.lang.StringgetDeprecationMessage()RestRequest.MethodgetMethod()java.lang.StringgetPath()RestHandler.RoutegetReplacedRoute()org.elasticsearch.common.RestApiVersiongetRestApiVersion()booleanisDeprecated()booleanisReplacement()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public static RestHandler.Route.RouteBuilder builder(RestRequest.Method method, java.lang.String path) -
getPath
public java.lang.String getPath() -
getMethod
-
getRestApiVersion
public org.elasticsearch.common.RestApiVersion getRestApiVersion() -
getDeprecationMessage
public java.lang.String getDeprecationMessage() -
isDeprecated
public boolean isDeprecated() -
getReplacedRoute
-
isReplacement
public boolean isReplacement()
-