public class QueryValueClientArgumentRequestBinder extends Object implements AnnotatedClientArgumentRequestBinder<QueryValue>
QueryValue
The details of implementation can be found in the
bind(ArgumentConversionContext, ClientRequestUriContext, Object, MutableHttpRequest) bind()} method javadoc.| Constructor and Description |
|---|
QueryValueClientArgumentRequestBinder(ConversionService<?> conversionService) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(ArgumentConversionContext<Object> context,
ClientRequestUriContext uriContext,
Object value,
MutableHttpRequest<?> request)
If value can be converted to ConvertibleMultiValues, then use it and add it to the uriContext.queryParameters.
|
Class<QueryValue> |
getAnnotationType() |
public QueryValueClientArgumentRequestBinder(ConversionService<?> conversionService)
@NonNull public Class<QueryValue> getAnnotationType()
getAnnotationType in interface AnnotatedClientArgumentRequestBinder<QueryValue>public void bind(@NonNull ArgumentConversionContext<Object> context, @NonNull ClientRequestUriContext uriContext, @NonNull Object value, @NonNull MutableHttpRequest<?> request)
MultiValuesConverterFactory and perform conversion only when the
Format annotation has one of the supported values.
Otherwise if the Format annotation is present, it is converted to String. If none of these
are satisfied, theUriTemplate decides what to do with the given value which
is supplied as an Object (it is added to uriContext.pathParameter).
Format annotation is present and has
one of the defined above formats. Otherwise empty optional is returned.
UriTemplate will convert the value to String and to parameters.
Optionally, the value can be formatted if the path template states so.bind in interface ClientArgumentRequestBinder<Object>context - The argument contexturiContext - The URI contextvalue - The argument valuerequest - The request