Package org.opensearch.rest
Class RestHandler.ReplacedRoute
java.lang.Object
org.opensearch.rest.RestHandler.Route
org.opensearch.rest.RestHandler.ReplacedRoute
- Enclosing interface:
RestHandler
Represents an API that has had its
path
or method
changed. Holds both the
new and previous path
and method
combination.- Opensearch.api:
-
Field Summary
Fields inherited from class org.opensearch.rest.RestHandler.Route
method, path
-
Constructor Summary
ConstructorDescriptionReplacedRoute
(RestHandler.Route route, String prefix, String deprecatedPrefix) Construct replaced routes using route, new and deprecated prefixesReplacedRoute
(RestRequest.Method method, String path, String deprecatedPath) Construct replaced routes using route method, new and deprecated paths This constructor can be used when both new and deprecated paths use the same methodReplacedRoute
(RestRequest.Method method, String path, RestRequest.Method deprecatedMethod, String deprecatedPath) Construct replaced routes using new and deprocated methods and new and deprecated paths -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.opensearch.rest.RestHandler.Route
equals, getMethod, getPath, getPathWithPathParamsReplaced, hashCode, toString
-
Constructor Details
-
ReplacedRoute
public ReplacedRoute(RestRequest.Method method, String path, RestRequest.Method deprecatedMethod, String deprecatedPath) Construct replaced routes using new and deprocated methods and new and deprecated paths- Parameters:
method
- route methodpath
- new route pathdeprecatedMethod
- deprecated methoddeprecatedPath
- deprecated path
-
ReplacedRoute
Construct replaced routes using route method, new and deprecated paths This constructor can be used when both new and deprecated paths use the same method- Parameters:
method
- route methodpath
- new route pathdeprecatedPath
- deprecated path
-
ReplacedRoute
Construct replaced routes using route, new and deprecated prefixes- Parameters:
route
- routeprefix
- new route prefixdeprecatedPrefix
- deprecated prefix
-
-
Method Details
-
getDeprecatedPath
-
getDeprecatedMethod
-