Package org.elasticsearch.rest
Class RestHandler.ReplacedRoute
java.lang.Object
org.elasticsearch.rest.RestHandler.Route
org.elasticsearch.rest.RestHandler.ReplacedRoute
- Enclosing interface:
- RestHandler
public static class RestHandler.ReplacedRoute extends RestHandler.Route
Represents an API that has had its
path
or method
changed. Holds both the
new and previous path
and method
combination.-
Constructor Summary
Constructors Constructor Description ReplacedRoute(RestRequest.Method method, java.lang.String path, RestRequest.Method deprecatedMethod, java.lang.String deprecatedPath)
-
Method Summary
Modifier and Type Method Description RestRequest.Method
getDeprecatedMethod()
java.lang.String
getDeprecatedPath()
-
Constructor Details
-
ReplacedRoute
public ReplacedRoute(RestRequest.Method method, java.lang.String path, RestRequest.Method deprecatedMethod, java.lang.String deprecatedPath)
-
-
Method Details
-
getDeprecatedPath
public java.lang.String getDeprecatedPath() -
getDeprecatedMethod
-