@Singleton public class PublisherBodyBinder extends DefaultBodyAnnotationBinder<Publisher> implements NonBlockingBodyArgumentBinder<Publisher>
ArgumentBinder.BindingResult<T>
conversionService
Constructor and Description |
---|
PublisherBodyBinder(ConversionService conversionService,
HttpContentProcessorResolver httpContentProcessorResolver) |
Modifier and Type | Method and Description |
---|---|
Argument<Publisher> |
argumentType() |
ArgumentBinder.BindingResult<Publisher> |
bind(ArgumentConversionContext<Publisher> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
getAnnotationType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotationType
of
superTypes
public PublisherBodyBinder(ConversionService conversionService, HttpContentProcessorResolver httpContentProcessorResolver)
conversionService
- The conversion servicehttpContentProcessorResolver
- The http content processor resolverpublic Argument<Publisher> argumentType()
argumentType
in interface TypeArgumentBinder<Publisher,HttpRequest<?>>
public ArgumentBinder.BindingResult<Publisher> bind(ArgumentConversionContext<Publisher> context, HttpRequest<?> source)
ArgumentBinder
bind
in interface ArgumentBinder<Publisher,HttpRequest<?>>
bind
in class DefaultBodyAnnotationBinder<Publisher>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()