Class SingleBodyBinder

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

@Internal public class SingleBodyBinder extends Object implements io.micronaut.http.bind.binders.NonBlockingBodyArgumentBinder<io.reactivex.Single>
Bindings Body arguments of type Single.
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.Single>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleBodyBinder(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.Single>
     
    io.micronaut.core.bind.ArgumentBinder.BindingResult<io.reactivex.Single>
    bind(io.micronaut.core.convert.ArgumentConversionContext<io.reactivex.Single> 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.Single> TYPE
  • Constructor Details

    • SingleBodyBinder

      public SingleBodyBinder(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.Single>
    • argumentType

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

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