Class WebFlux
java.lang.Object
org.springframework.integration.webflux.dsl.WebFlux
The WebFlux components Factory.
- Since:
- 5.0
- Author:
- Artem Bilan, Shiliang Li
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebFluxInboundEndpointSpec
inboundChannelAdapter
(String... path) Create anWebFluxInboundEndpointSpec
builder for one-way reactive adapter based on the providedpath
array for mapping.static WebFluxInboundEndpointSpec
inboundGateway
(String... path) Create anWebFluxInboundEndpointSpec
builder for request-reply reactive gateway based on the providedpath
array for mapping.static WebFluxMessageHandlerSpec
Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on provideduri
.static WebFluxMessageHandlerSpec
outboundChannelAdapter
(String uri, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on provideduri
andWebClient
.static WebFluxMessageHandlerSpec
Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on providedURI
.static WebFluxMessageHandlerSpec
outboundChannelAdapter
(URI uri, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on providedURI
andWebClient
.static <P> WebFluxMessageHandlerSpec
outboundChannelAdapter
(Function<Message<P>, ?> uriFunction) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on providedFunction
to evaluate targeturi
against request message.static <P> WebFluxMessageHandlerSpec
outboundChannelAdapter
(Function<Message<P>, ?> uriFunction, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on providedFunction
to evaluate targeturi
against request message andWebClient
for HTTP exchanges.static WebFluxMessageHandlerSpec
outboundChannelAdapter
(Expression uriExpression) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on provided SpELExpression
to evaluate targeturi
against request message.static WebFluxMessageHandlerSpec
outboundChannelAdapter
(Expression uriExpression, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on provided SpELExpression
to evaluate targeturi
against request message andWebClient
for HTTP exchanges.static WebFluxMessageHandlerSpec
outboundGateway
(String uri) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on provideduri
.static WebFluxMessageHandlerSpec
outboundGateway
(String uri, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on provideduri
andWebClient
.static WebFluxMessageHandlerSpec
outboundGateway
(URI uri) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on providedURI
.static WebFluxMessageHandlerSpec
outboundGateway
(URI uri, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on providedURI
andWebClient
.static <P> WebFluxMessageHandlerSpec
outboundGateway
(Function<Message<P>, ?> uriFunction) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on providedFunction
to evaluate targeturi
against request message.static <P> WebFluxMessageHandlerSpec
outboundGateway
(Function<Message<P>, ?> uriFunction, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on providedFunction
to evaluate targeturi
against request message andWebClient
for HTTP exchanges.static WebFluxMessageHandlerSpec
outboundGateway
(Expression uriExpression) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on provided SpELExpression
to evaluate targeturi
against request message.static WebFluxMessageHandlerSpec
outboundGateway
(Expression uriExpression, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on provided SpELExpression
to evaluate targeturi
against request message andWebClient
for HTTP exchanges.
-
Method Details
-
outboundChannelAdapter
Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on providedURI
.- Parameters:
uri
- theURI
to send requests.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundChannelAdapter
Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on provideduri
.- Parameters:
uri
- theuri
to send requests.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundChannelAdapter
public static <P> WebFluxMessageHandlerSpec outboundChannelAdapter(Function<Message<P>, ?> uriFunction) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on providedFunction
to evaluate targeturi
against request message.- Type Parameters:
P
- the expected payload type.- Parameters:
uriFunction
- theFunction
to evaluateuri
at runtime.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundChannelAdapter
Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on provided SpELExpression
to evaluate targeturi
against request message.- Parameters:
uriExpression
- the SpELExpression
to evaluateuri
at runtime.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundChannelAdapter
Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on providedURI
andWebClient
. -
outboundChannelAdapter
Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on provideduri
andWebClient
.- Parameters:
uri
- theuri
to send requests.webClient
-WebClient
to use.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundChannelAdapter
public static <P> WebFluxMessageHandlerSpec outboundChannelAdapter(Function<Message<P>, ?> uriFunction, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on providedFunction
to evaluate targeturi
against request message andWebClient
for HTTP exchanges.- Type Parameters:
P
- the expected payload type.- Parameters:
uriFunction
- theFunction
to evaluateuri
at runtime.webClient
-WebClient
to use.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundChannelAdapter
public static WebFluxMessageHandlerSpec outboundChannelAdapter(Expression uriExpression, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for one-way adapter based on provided SpELExpression
to evaluate targeturi
against request message andWebClient
for HTTP exchanges.- Parameters:
uriExpression
- the SpELExpression
to evaluateuri
at runtime.webClient
-WebClient
to use.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundGateway
Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on providedURI
.- Parameters:
uri
- theURI
to send requests.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundGateway
Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on provideduri
.- Parameters:
uri
- theuri
to send requests.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundGateway
Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on providedFunction
to evaluate targeturi
against request message.- Type Parameters:
P
- the expected payload type.- Parameters:
uriFunction
- theFunction
to evaluateuri
at runtime.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundGateway
Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on provided SpELExpression
to evaluate targeturi
against request message.- Parameters:
uriExpression
- the SpELExpression
to evaluateuri
at runtime.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundGateway
Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on providedURI
andWebClient
. -
outboundGateway
Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on provideduri
andWebClient
.- Parameters:
uri
- theuri
to send requests.webClient
-WebClient
to use.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundGateway
public static <P> WebFluxMessageHandlerSpec outboundGateway(Function<Message<P>, ?> uriFunction, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on providedFunction
to evaluate targeturi
against request message andWebClient
for HTTP exchanges.- Type Parameters:
P
- the expected payload type.- Parameters:
uriFunction
- theFunction
to evaluateuri
at runtime.webClient
-WebClient
to use.- Returns:
- the WebFluxMessageHandlerSpec instance
-
outboundGateway
public static WebFluxMessageHandlerSpec outboundGateway(Expression uriExpression, WebClient webClient) Create anWebFluxMessageHandlerSpec
builder for request-reply gateway based on provided SpELExpression
to evaluate targeturi
against request message andWebClient
for HTTP exchanges.- Parameters:
uriExpression
- the SpELExpression
to evaluateuri
at runtime.webClient
-WebClient
to use.- Returns:
- the WebFluxMessageHandlerSpec instance
-
inboundChannelAdapter
Create anWebFluxInboundEndpointSpec
builder for one-way reactive adapter based on the providedpath
array for mapping.- Parameters:
path
- the path mapping URIs (e.g. "/myPath.do").- Returns:
- the WebFluxInboundEndpointSpec instance
-
inboundGateway
Create anWebFluxInboundEndpointSpec
builder for request-reply reactive gateway based on the providedpath
array for mapping.- Parameters:
path
- the path mapping URIs (e.g. "/myPath.do").- Returns:
- the WebFluxInboundEndpointSpec instance
-