Package io.micronaut.http.bind.binders
Class CookieAnnotationBinder<T>
- java.lang.Object
-
- io.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>>
-
- io.micronaut.http.bind.binders.CookieAnnotationBinder<T>
-
- Type Parameters:
T
- A type
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>>
,io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>
,AnnotatedRequestArgumentBinder<CookieValue,T>
,RequestArgumentBinder<T>
public class CookieAnnotationBinder<T> extends io.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>> implements AnnotatedRequestArgumentBinder<CookieValue,T>
AnAnnotatedArgumentBinder
implementation that uses theCookieValue
annotation to trigger binding from an HTTPCookie
.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description CookieAnnotationBinder(io.micronaut.core.convert.ConversionService<?> conversionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getAnnotationType
public java.lang.Class<CookieValue> getAnnotationType()
- Specified by:
getAnnotationType
in interfaceio.micronaut.core.bind.annotation.AnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> argument, HttpRequest<?> source)
- Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>
-
getFallbackFormat
protected java.lang.String getFallbackFormat(io.micronaut.core.type.Argument argument)
- Overrides:
getFallbackFormat
in classio.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>>
-
-