@Singleton @Internal public class PublisherBodyBinder extends DefaultBodyAnnotationBinder<Publisher> implements NonBlockingBodyArgumentBinder<Publisher>
ArgumentBinder.BindingResult<T>
conversionService
Constructor and Description |
---|
PublisherBodyBinder(ConversionService conversionService,
BeanLocator beanLocator,
HttpServerConfiguration httpServerConfiguration) |
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
public PublisherBodyBinder(ConversionService conversionService, BeanLocator beanLocator, HttpServerConfiguration httpServerConfiguration)
conversionService
- The conversion servicebeanLocator
- The bean locatorhttpServerConfiguration
- The Http server configurationpublic 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()