public class ClientRequestUriContext extends Object
ClientArgumentRequestBinder
instances.
The binders can mutate the path and query parameters to allow control over the resulting URI.Constructor and Description |
---|
ClientRequestUriContext(UriMatchTemplate uriTemplate,
Map<String,Object> pathParameters,
Map<String,List<String>> queryParameters) |
Modifier and Type | Method and Description |
---|---|
void |
addQueryParameter(String name,
String value)
Add a new query parameter given its name.
|
Map<String,Object> |
getPathParameters() |
Map<String,List<String>> |
getQueryParameters() |
UriMatchTemplate |
getUriTemplate() |
void |
setPathParameter(String name,
Object value)
Set the value of a path parameter.
|
void |
setQueryParameter(String name,
List<String> values)
Set all the values of query parameters.
|
public UriMatchTemplate getUriTemplate()
public Map<String,Object> getPathParameters()
UriTemplate.expand(Map)
public Map<String,List<String>> getQueryParameters()
public void addQueryParameter(String name, String value)
name
- - the name of the parametervalue
- - that value to addpublic void setQueryParameter(String name, List<String> values)
name
- - the name of the parametervalues
- - all the values of the parameter