Class Reactivex

java.lang.Object
io.jooby.rxjava3.Reactivex

public class Reactivex extends Object
Rx reactive filter.
Author:
edgar
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.jooby.Route.Filter
    rx()
    Adapt/map a Flowable, Single, Observable and Maybe results as HTTP responses.
    static io.jooby.Route.Handler
    rx(io.jooby.Route.Handler next)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Reactivex

      public Reactivex()
  • Method Details

    • rx

      public static io.jooby.Route.Filter rx()
      Adapt/map a Flowable, Single, Observable and Maybe results as HTTP responses.
      
       import io.jooby.rxjava3.Reactivex.rx;
      
       use(rx());
      
       get("/", ctx -> Single.from("Hello"));
      
       
      Returns:
      Rx filter.
    • rx

      public static io.jooby.Route.Handler rx(io.jooby.Route.Handler next)