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, waitofprotected 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)
ArgumentBinderbind in interface ArgumentBinder<T,HttpRequest<?>>context - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()