Class Reactivex

java.lang.Object
io.jooby.rxjava3.Reactivex
All Implemented Interfaces:
io.jooby.ResultHandler

public class Reactivex extends Object implements io.jooby.ResultHandler
Rx reactive filter.
Author:
edgar
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    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.
    • matches

      public boolean matches(@NonNull Type type)
      Specified by:
      matches in interface io.jooby.ResultHandler
    • create

      @NonNull public io.jooby.Route.Filter create()
      Specified by:
      create in interface io.jooby.ResultHandler
    • isReactive

      public boolean isReactive()
      Specified by:
      isReactive in interface io.jooby.ResultHandler