T - The argument typepublic class QueryValueArgumentBinder<T> extends io.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<QueryValue,T,HttpRequest<?>> implements AnnotatedRequestArgumentBinder<QueryValue,T>
| Constructor and Description |
|---|
QueryValueArgumentBinder(io.micronaut.core.convert.ConversionService<?> conversionService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
io.micronaut.core.bind.ArgumentBinder.BindingResult<T> |
bind(io.micronaut.core.convert.ArgumentConversionContext<T> context,
HttpRequest<?> source)
Binds the argument with
QueryValue annotation to the request
(Also binds without annotation if request body is not permitted). |
java.lang.Class<QueryValue> |
getAnnotationType() |
doBind, doBind, doConvert, doConvert, doResolve, getFallbackFormatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic QueryValueArgumentBinder(io.micronaut.core.convert.ConversionService<?> conversionService)
conversionService - conversion servicepublic java.lang.Class<QueryValue> getAnnotationType()
getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<QueryValue,T,HttpRequest<?>>public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> source)
QueryValue annotation to the request
(Also binds without annotation if request body is not permitted).
It will first try to convert to ConvertibleMultiValues type and if conversion is successful, add the
corresponding parameters to the request. (By default the conversion will be successful if the Format
annotation is present and has one of the supported values - see
MultiValuesConverterFactory for specific converters). Otherwise
the uri template will be used to deduce what will be done with the request. For example, simple parameters are
converted to Stringbind in interface io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>