Package net.officefloor.spring.reactive
Class ReactiveWoof
- java.lang.Object
-
- net.officefloor.spring.reactive.ReactiveWoof
-
public class ReactiveWoof extends java.lang.Object
Utility methods forWoOF
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 propagatesstatic <T> java.util.function.Consumer<? super T>
send(AsynchronousFlow flow, ObjectResponse<T> response)
Sends the response.
-
-
-
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.
-
send
public static <T> java.util.function.Consumer<? super T> send(AsynchronousFlow flow, ObjectResponse<T> response)
Sends the response.- Parameters:
flow
-AsynchronousFlow
.response
-ObjectResponse
.- Returns:
Consumer
for sending the response.
-
-