T
- A typepublic class DefaultBodyAnnotationBinder<T> extends Object implements BodyArgumentBinder<T>
ArgumentBinder.BindingResult<T>
Modifier and Type | Field and Description |
---|---|
protected ConversionService<?> |
conversionService |
Constructor and Description |
---|
DefaultBodyAnnotationBinder(ConversionService conversionService) |
Modifier and Type | Method and Description |
---|---|
ArgumentBinder.BindingResult<T> |
bind(ArgumentConversionContext<T> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
Class<Body> |
getAnnotationType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of
protected final ConversionService<?> conversionService
public DefaultBodyAnnotationBinder(ConversionService conversionService)
conversionService
- The conversion servicepublic Class<Body> getAnnotationType()
getAnnotationType
in interface AnnotatedArgumentBinder<Body,T,HttpRequest<?>>
getAnnotationType
in interface BodyArgumentBinder<T>
public ArgumentBinder.BindingResult<T> bind(ArgumentConversionContext<T> context, HttpRequest<?> source)
ArgumentBinder
bind
in interface ArgumentBinder<T,HttpRequest<?>>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()