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