Class RestHandler.Route

java.lang.Object
org.elasticsearch.rest.RestHandler.Route
Enclosing interface:
RestHandler

public static class RestHandler.Route extends Object
  • Constructor Details

    • Route

      public Route(RestRequest.Method method, String path)
      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. GET
      path - the path, e.g. "/"
  • Method Details

    • builder

      public static RestHandler.Route.RouteBuilder builder(RestRequest.Method method, String path)
    • getPath

      public String getPath()
    • getMethod

      public RestRequest.Method getMethod()
    • getRestApiVersion

      public org.elasticsearch.core.RestApiVersion getRestApiVersion()
    • getDeprecationMessage

      public String getDeprecationMessage()
    • getDeprecationLevel

      @Nullable public org.apache.logging.log4j.Level getDeprecationLevel()
    • isDeprecated

      public boolean isDeprecated()
    • getReplacedRoute

      public RestHandler.Route getReplacedRoute()
    • isReplacement

      public boolean isReplacement()