T
- A typepublic class DefaultBodyAnnotationBinder<T> extends java.lang.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.
|
java.lang.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 java.lang.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()