T - A typepublic class CookieAnnotationBinder<T> extends AbstractAnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>> implements AnnotatedRequestArgumentBinder<CookieValue,T>
AnnotatedArgumentBinder implementation that uses the CookieValue
annotation to trigger binding from an HTTP Cookie.ArgumentBinder.BindingResult<T>| Constructor and Description |
|---|
CookieAnnotationBinder(ConversionService<?> conversionService) |
| Modifier and Type | Method and Description |
|---|---|
ArgumentBinder.BindingResult<T> |
bind(ArgumentConversionContext<T> argument,
HttpRequest<?> source)
Bind the given argument from the given source.
|
Class<CookieValue> |
getAnnotationType() |
protected String |
getFallbackFormat(Argument argument) |
doBind, doConvert, doResolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic CookieAnnotationBinder(ConversionService<?> conversionService)
conversionService - The conversion servicepublic Class<CookieValue> getAnnotationType()
getAnnotationType in interface AnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>>public ArgumentBinder.BindingResult<T> bind(ArgumentConversionContext<T> argument, HttpRequest<?> source)
ArgumentBinderbind in interface ArgumentBinder<T,HttpRequest<?>>argument - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()protected String getFallbackFormat(Argument argument)
getFallbackFormat in class AbstractAnnotatedArgumentBinder<CookieValue,T,HttpRequest<?>>argument - The argument