Class ClientRequestUriContext
java.lang.Object
io.micronaut.http.client.bind.ClientRequestUriContext
A class that exposes information about the URI to
ClientArgumentRequestBinder instances.
The binders can mutate the path and query parameters to allow control over the resulting URI.- Since:
- 2.1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorsConstructorDescriptionClientRequestUriContext(UriMatchTemplate uriTemplate, Map<String, Object> pathParameters, Map<String, List<String>> queryParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryParameter(String name, String value) Add a new query parameter given its name.voidsetPathParameter(String name, Object value) Set the value of a path parameter.voidsetQueryParameter(String name, List<String> values) Set all the values of query parameters.
-
Constructor Details
-
ClientRequestUriContext
-
-
Method Details
-
getUriTemplate
- Returns:
- The URI template for the client method
-
getPathParameters
-
getQueryParameters
-
addQueryParameter
-
setQueryParameter
-
setPathParameter
-