T
- A typepublic class CookieAnnotationBinder<T> extends io.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>> implements AnnotatedRequestArgumentBinder<CookieValue,T>
AnnotatedArgumentBinder
implementation that uses the CookieValue
annotation to trigger binding from an HTTP Cookie
.Constructor and Description |
---|
CookieAnnotationBinder(io.micronaut.core.convert.ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
io.micronaut.core.bind.ArgumentBinder.BindingResult<T> |
bind(io.micronaut.core.convert.ArgumentConversionContext<T> argument,
HttpRequest<?> source) |
java.lang.Class<CookieValue> |
getAnnotationType() |
protected java.lang.String |
getFallbackFormat(io.micronaut.core.type.Argument argument) |
doBind, doBind, doConvert, doConvert, doResolve
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of
public CookieAnnotationBinder(io.micronaut.core.convert.ConversionService<?> conversionService)
conversionService
- The conversion servicepublic java.lang.Class<CookieValue> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> argument, HttpRequest<?> source)
bind
in interface io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>
protected java.lang.String getFallbackFormat(io.micronaut.core.type.Argument argument)
getFallbackFormat
in class io.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>>