@Singleton @Requires(classes=io.reactivex.Maybe.class) @Internal public class MaybeBodyBinder extends DefaultBodyAnnotationBinder<io.reactivex.Maybe> implements NonBlockingBodyArgumentBinder<io.reactivex.Maybe>
Body arguments of type Maybe.ArgumentBinder.BindingResult<T>| Modifier and Type | Field and Description |
|---|---|
static Argument<io.reactivex.Maybe> |
TYPE |
conversionService| Constructor and Description |
|---|
MaybeBodyBinder(ConversionService conversionService,
BeanLocator beanLocator,
HttpServerConfiguration httpServerConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Argument<io.reactivex.Maybe> |
argumentType() |
ArgumentBinder.BindingResult<io.reactivex.Maybe> |
bind(ArgumentConversionContext<io.reactivex.Maybe> 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.Maybe> TYPE
public MaybeBodyBinder(ConversionService conversionService, BeanLocator beanLocator, HttpServerConfiguration httpServerConfiguration)
conversionService - The conversion servicebeanLocator - The bean locatorhttpServerConfiguration - The Http server configurationpublic Argument<io.reactivex.Maybe> argumentType()
argumentType in interface TypeArgumentBinder<io.reactivex.Maybe,HttpRequest<?>>public ArgumentBinder.BindingResult<io.reactivex.Maybe> bind(ArgumentConversionContext<io.reactivex.Maybe> context, HttpRequest<?> source)
ArgumentBinderbind in interface ArgumentBinder<io.reactivex.Maybe,HttpRequest<?>>bind in class DefaultBodyAnnotationBinder<io.reactivex.Maybe>context - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()