Class ReactiveWoof


  • public class ReactiveWoof
    extends java.lang.Object
    Utility methods for WoOF working with Spring Reactive.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactiveWoof()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Consumer<? super java.lang.Throwable> flowError​(AsynchronousFlow flow)
      Provides handling for on error.
      static java.util.function.Consumer<? super java.lang.Throwable> propagateHttpError​(AsynchronousFlow flow)
      Provides handling of an error and propagates
      static <T> java.util.function.Consumer<? super T> send​(AsynchronousFlow flow, ObjectResponse<T> response)
      Sends the response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactiveWoof

        public ReactiveWoof()
    • Method Detail

      • flowError

        public static java.util.function.Consumer<? super java.lang.Throwable> flowError​(AsynchronousFlow flow)
        Provides handling for on error.
        Parameters:
        flow - AsynchronousFlow.
        Returns:
        Consumer for error handling.
      • propagateHttpError

        public static java.util.function.Consumer<? super java.lang.Throwable> propagateHttpError​(AsynchronousFlow flow)
        Provides handling of an error and propagates
        Parameters:
        flow - AsynchronousFlow.
        Returns:
        Consumer for error handling.