public class ClientRequestUriContext
extends java.lang.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,
java.util.Map<java.lang.String,java.lang.Object> pathParameters,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> queryParameters) |
Modifier and Type | Method and Description |
---|---|
void |
addQueryParameter(java.lang.String name,
java.lang.String value)
Add a new query parameter given its name.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPathParameters() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getQueryParameters() |
UriMatchTemplate |
getUriTemplate() |
void |
setPathParameter(java.lang.String name,
java.lang.Object value)
Set the value of a path parameter.
|
void |
setQueryParameter(java.lang.String name,
java.util.List<java.lang.String> values)
Set all the values of query parameters.
|
@Internal public ClientRequestUriContext(UriMatchTemplate uriTemplate, java.util.Map<java.lang.String,java.lang.Object> pathParameters, java.util.Map<java.lang.String,java.util.List<java.lang.String>> queryParameters)
public UriMatchTemplate getUriTemplate()
public java.util.Map<java.lang.String,java.lang.Object> getPathParameters()
UriTemplate.expand(Map)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getQueryParameters()
public void addQueryParameter(java.lang.String name, java.lang.String value)
name
- - the name of the parametervalue
- - that value to addpublic void setQueryParameter(java.lang.String name, java.util.List<java.lang.String> values)
name
- - the name of the parametervalues
- - all the values of the parameterpublic void setPathParameter(java.lang.String name, java.lang.Object value)
name
- - the name of the parametervalue
- - the value of the parameter