bind
public void bind(@NonNull
io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context,
@NonNull
ClientRequestUriContext uriContext,
@NonNull
java.lang.Object value,
@NonNull
io.micronaut.http.MutableHttpRequest<?> request)
If value can be converted to ConvertibleMultiValues, then use it and add it to the uriContext.queryParameters.
The ConvertibleMultiValues converters are found in
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).
By default value is converted to ConvertibleMultiValues when the Format annotation is present and has
one of the defined above formats. Otherwise empty optional is returned.
The default UriTemplate will convert the value to String and to parameters.
Optionally, the value can be formatted if the path template states so.
- Specified by:
bind in interface ClientArgumentRequestBinder<java.lang.Object>
- Parameters:
context - The argument context
uriContext - The URI context
value - The argument value
request - The request