@Singleton @Requires(classes=io.reactivex.Single.class) @Internal public class SingleBodyBinder extends DefaultBodyAnnotationBinder<io.reactivex.Single> implements NonBlockingBodyArgumentBinder<io.reactivex.Single>
Body arguments of type Single.ArgumentBinder.BindingResult<T>| Modifier and Type | Field and Description |
|---|---|
static Argument<io.reactivex.Single> |
TYPE |
conversionService| Constructor and Description |
|---|
SingleBodyBinder(ConversionService conversionService,
BeanLocator beanLocator,
HttpServerConfiguration httpServerConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Argument<io.reactivex.Single> |
argumentType() |
ArgumentBinder.BindingResult<io.reactivex.Single> |
bind(ArgumentConversionContext<io.reactivex.Single> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
getAnnotationTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationTypeofpublic static final Argument<io.reactivex.Single> TYPE
public SingleBodyBinder(ConversionService conversionService, BeanLocator beanLocator, HttpServerConfiguration httpServerConfiguration)
conversionService - The conversion servicebeanLocator - The bean locatorhttpServerConfiguration - The Http server configurationpublic Argument<io.reactivex.Single> argumentType()
argumentType in interface TypeArgumentBinder<io.reactivex.Single,HttpRequest<?>>public ArgumentBinder.BindingResult<io.reactivex.Single> bind(ArgumentConversionContext<io.reactivex.Single> context, HttpRequest<?> source)
ArgumentBinderbind in interface ArgumentBinder<io.reactivex.Single,HttpRequest<?>>bind in class DefaultBodyAnnotationBinder<io.reactivex.Single>context - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()