Class RouteResult<T>
java.lang.Object
org.apache.flink.runtime.rest.handler.router.RouteResult<T>
This is adopted and simplified code from tv.cntt:netty-router library. For more information check
Router. Original code:
https://github.com/sinetja/netty-router/blob/2.2.0/src/main/java/io/netty/handler/codec/http/router/RouteResult.java
Result of calling Router.route(HttpMethod, String).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the decoded request path.Extracts the param inpathParamsfirst, then falls back to the first matching param inqueryParams.Extracts all params inpathParamsandqueryParamsmatching the name.Returns all params embedded in the request path.queryParam(String name) Extracts the first matching param inqueryParams.Returns all params in the query part of the request URI.target()uri()Returns the original request URI.
-
Constructor Details
-
Method Details
-
uri
Returns the original request URI. -
decodedPath
Returns the decoded request path. -
pathParams
Returns all params embedded in the request path. -
queryParams
Returns all params in the query part of the request URI. -
target
-
queryParam
Extracts the first matching param inqueryParams.- Returns:
nullif there's no match
-
param
Extracts the param inpathParamsfirst, then falls back to the first matching param inqueryParams.- Returns:
nullif there's no match
-
params
Extracts all params inpathParamsandqueryParamsmatching the name.- Returns:
- Unmodifiable list; the list is empty if there's no match
-