Class MaybeBodyBinder

java.lang.Object
io.micronaut.rxjava2.server.upload.binders.MaybeBodyBinder
All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.http.annotation.Body,io.reactivex.Maybe,io.micronaut.http.HttpRequest<?>>, io.micronaut.core.bind.ArgumentBinder<io.reactivex.Maybe,io.micronaut.http.HttpRequest<?>>, io.micronaut.core.bind.TypeArgumentBinder<io.reactivex.Maybe,io.micronaut.http.HttpRequest<?>>, io.micronaut.http.bind.binders.AnnotatedRequestArgumentBinder<io.micronaut.http.annotation.Body,io.reactivex.Maybe>, io.micronaut.http.bind.binders.BodyArgumentBinder<io.reactivex.Maybe>, io.micronaut.http.bind.binders.NonBlockingBodyArgumentBinder<io.reactivex.Maybe>, io.micronaut.http.bind.binders.RequestArgumentBinder<io.reactivex.Maybe>, io.micronaut.http.bind.binders.TypedRequestArgumentBinder<io.reactivex.Maybe>

@Internal public class MaybeBodyBinder extends Object implements io.micronaut.http.bind.binders.NonBlockingBodyArgumentBinder<io.reactivex.Maybe>
Bindings Body arguments of type Maybe.
Since:
1.0
Author:
Graeme Rocher
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder

    io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.micronaut.core.type.Argument<io.reactivex.Maybe>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MaybeBodyBinder(io.micronaut.http.bind.binders.BodyArgumentBinder<org.reactivestreams.Publisher<Object>> publisherBodyBinder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.type.Argument<io.reactivex.Maybe>
     
    io.micronaut.core.bind.ArgumentBinder.BindingResult<io.reactivex.Maybe>
    bind(io.micronaut.core.convert.ArgumentConversionContext<io.reactivex.Maybe> context, io.micronaut.http.HttpRequest<?> source)
     
    @NonNull List<Class<?>>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.http.bind.binders.BodyArgumentBinder

    getAnnotationType

    Methods inherited from interface io.micronaut.http.bind.binders.TypedRequestArgumentBinder

    matches
  • Field Details

    • TYPE

      public static final io.micronaut.core.type.Argument<io.reactivex.Maybe> TYPE
  • Constructor Details

    • MaybeBodyBinder

      public MaybeBodyBinder(io.micronaut.http.bind.binders.BodyArgumentBinder<org.reactivestreams.Publisher<Object>> publisherBodyBinder)
      Parameters:
      publisherBodyBinder - the publisher body binder
  • Method Details

    • superTypes

      @NonNull public @NonNull List<Class<?>> superTypes()
      Specified by:
      superTypes in interface io.micronaut.http.bind.binders.TypedRequestArgumentBinder<io.reactivex.Maybe>
    • argumentType

      public io.micronaut.core.type.Argument<io.reactivex.Maybe> argumentType()
      Specified by:
      argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<io.reactivex.Maybe,io.micronaut.http.HttpRequest<?>>
    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<io.reactivex.Maybe> bind(io.micronaut.core.convert.ArgumentConversionContext<io.reactivex.Maybe> context, io.micronaut.http.HttpRequest<?> source)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<io.reactivex.Maybe,io.micronaut.http.HttpRequest<?>>