public final class Http
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static HttpRequestHandlerEndpointSpec |
inboundChannelAdapter(java.lang.String... path)
Create an
HttpRequestHandlerEndpointSpec builder for one-way adapter
based on the provided path array for mapping. |
static HttpControllerEndpointSpec |
inboundControllerAdapter(org.springframework.expression.Expression viewExpression,
java.lang.String... path)
Create an
HttpControllerEndpointSpec builder for one-way adapter
based on the provided SpEL expression and path array for mapping. |
static HttpControllerEndpointSpec |
inboundControllerAdapter(java.lang.String viewName,
java.lang.String... path)
Create an
HttpControllerEndpointSpec builder for one-way adapter
based on the provided MVC viewName and path array for mapping. |
static HttpControllerEndpointSpec |
inboundControllerGateway(org.springframework.expression.Expression viewExpression,
java.lang.String... path)
Create an
HttpControllerEndpointSpec builder for request-reply gateway
based on the provided SpEL expression and path array for mapping. |
static HttpControllerEndpointSpec |
inboundControllerGateway(java.lang.String viewName,
java.lang.String... path)
Create an
HttpControllerEndpointSpec builder for request-reply gateway
based on the provided MVC viewName and path array for mapping. |
static HttpRequestHandlerEndpointSpec |
inboundGateway(java.lang.String... path)
Create an
HttpRequestHandlerEndpointSpec builder for request-reply gateway
based on the provided path array for mapping. |
static HttpMessageHandlerSpec |
outboundChannelAdapter(org.springframework.expression.Expression uriExpression)
Create an
HttpMessageHandlerSpec builder for one-way adapter based on provided SpEL Expression
to evaluate target uri against request message. |
static HttpMessageHandlerSpec |
outboundChannelAdapter(org.springframework.expression.Expression uriExpression,
org.springframework.web.client.RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for one-way adapter
based on provided SpEL Expression to evaluate target uri
against request message and RestTemplate for HTTP exchanges. |
static <P> HttpMessageHandlerSpec |
outboundChannelAdapter(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction)
Create an
HttpMessageHandlerSpec builder for one-way adapter based on provided Function
to evaluate target uri against request message. |
static <P> HttpMessageHandlerSpec |
outboundChannelAdapter(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction,
org.springframework.web.client.RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for one-way adapter
based on provided Function to evaluate target uri against request message
and RestTemplate for HTTP exchanges. |
static HttpMessageHandlerSpec |
outboundChannelAdapter(java.lang.String uri)
Create an
HttpMessageHandlerSpec builder for one-way adapter based on provided uri . |
static HttpMessageHandlerSpec |
outboundChannelAdapter(java.lang.String uri,
org.springframework.web.client.RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for one-way adapter
based on provided uri and RestTemplate . |
static HttpMessageHandlerSpec |
outboundChannelAdapter(java.net.URI uri)
Create an
HttpMessageHandlerSpec builder for one-way adapter based on provided URI . |
static HttpMessageHandlerSpec |
outboundChannelAdapter(java.net.URI uri,
org.springframework.web.client.RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for one-way adapter
based on provided URI and RestTemplate . |
static HttpMessageHandlerSpec |
outboundGateway(org.springframework.expression.Expression uriExpression)
Create an
HttpMessageHandlerSpec builder for request-reply gateway
based on provided SpEL Expression to evaluate target uri against request message. |
static HttpMessageHandlerSpec |
outboundGateway(org.springframework.expression.Expression uriExpression,
org.springframework.web.client.RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for request-reply gateway
based on provided SpEL Expression to evaluate target uri
against request message and RestTemplate for HTTP exchanges. |
static <P> HttpMessageHandlerSpec |
outboundGateway(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction)
Create an
HttpMessageHandlerSpec builder for request-reply gateway
based on provided Function to evaluate target uri against request message. |
static <P> HttpMessageHandlerSpec |
outboundGateway(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction,
org.springframework.web.client.RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for request-reply gateway
based on provided Function to evaluate target uri against request message
and RestTemplate for HTTP exchanges. |
static HttpMessageHandlerSpec |
outboundGateway(java.lang.String uri)
Create an
HttpMessageHandlerSpec builder for request-reply gateway based on provided uri . |
static HttpMessageHandlerSpec |
outboundGateway(java.lang.String uri,
org.springframework.web.client.RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for request-reply gateway
based on provided uri and RestTemplate . |
static HttpMessageHandlerSpec |
outboundGateway(java.net.URI uri)
Create an
HttpMessageHandlerSpec builder for request-reply gateway based on provided URI . |
static HttpMessageHandlerSpec |
outboundGateway(java.net.URI uri,
org.springframework.web.client.RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for request-reply gateway
based on provided URI and RestTemplate . |
public static HttpMessageHandlerSpec outboundChannelAdapter(java.net.URI uri)
HttpMessageHandlerSpec
builder for one-way adapter based on provided URI
.uri
- the URI
to send requests.public static HttpMessageHandlerSpec outboundChannelAdapter(java.lang.String uri)
HttpMessageHandlerSpec
builder for one-way adapter based on provided uri
.uri
- the uri
to send requests.public static <P> HttpMessageHandlerSpec outboundChannelAdapter(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction)
HttpMessageHandlerSpec
builder for one-way adapter based on provided Function
to evaluate target uri
against request message.P
- the expected payload type.uriFunction
- the Function
to evaluate uri
at runtime.public static HttpMessageHandlerSpec outboundChannelAdapter(org.springframework.expression.Expression uriExpression)
HttpMessageHandlerSpec
builder for one-way adapter based on provided SpEL Expression
to evaluate target uri
against request message.uriExpression
- the SpEL Expression
to evaluate uri
at runtime.public static HttpMessageHandlerSpec outboundChannelAdapter(java.net.URI uri, org.springframework.web.client.RestTemplate restTemplate)
HttpMessageHandlerSpec
builder for one-way adapter
based on provided URI
and RestTemplate
.uri
- the URI
to send requests.restTemplate
- RestTemplate
to use.public static HttpMessageHandlerSpec outboundChannelAdapter(java.lang.String uri, org.springframework.web.client.RestTemplate restTemplate)
HttpMessageHandlerSpec
builder for one-way adapter
based on provided uri
and RestTemplate
.uri
- the uri
to send requests.restTemplate
- RestTemplate
to use.public static <P> HttpMessageHandlerSpec outboundChannelAdapter(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction, org.springframework.web.client.RestTemplate restTemplate)
HttpMessageHandlerSpec
builder for one-way adapter
based on provided Function
to evaluate target uri
against request message
and RestTemplate
for HTTP exchanges.P
- the expected payload type.uriFunction
- the Function
to evaluate uri
at runtime.restTemplate
- RestTemplate
to use.public static HttpMessageHandlerSpec outboundChannelAdapter(org.springframework.expression.Expression uriExpression, org.springframework.web.client.RestTemplate restTemplate)
HttpMessageHandlerSpec
builder for one-way adapter
based on provided SpEL Expression
to evaluate target uri
against request message and RestTemplate
for HTTP exchanges.uriExpression
- the SpEL Expression
to evaluate uri
at runtime.restTemplate
- RestTemplate
to use.public static HttpMessageHandlerSpec outboundGateway(java.net.URI uri)
HttpMessageHandlerSpec
builder for request-reply gateway based on provided URI
.uri
- the URI
to send requests.public static HttpMessageHandlerSpec outboundGateway(java.lang.String uri)
HttpMessageHandlerSpec
builder for request-reply gateway based on provided uri
.uri
- the uri
to send requests.public static <P> HttpMessageHandlerSpec outboundGateway(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction)
HttpMessageHandlerSpec
builder for request-reply gateway
based on provided Function
to evaluate target uri
against request message.P
- the expected payload type.uriFunction
- the Function
to evaluate uri
at runtime.public static HttpMessageHandlerSpec outboundGateway(org.springframework.expression.Expression uriExpression)
HttpMessageHandlerSpec
builder for request-reply gateway
based on provided SpEL Expression
to evaluate target uri
against request message.uriExpression
- the SpEL Expression
to evaluate uri
at runtime.public static HttpMessageHandlerSpec outboundGateway(java.net.URI uri, org.springframework.web.client.RestTemplate restTemplate)
HttpMessageHandlerSpec
builder for request-reply gateway
based on provided URI
and RestTemplate
.uri
- the URI
to send requests.restTemplate
- RestTemplate
to use.public static HttpMessageHandlerSpec outboundGateway(java.lang.String uri, org.springframework.web.client.RestTemplate restTemplate)
HttpMessageHandlerSpec
builder for request-reply gateway
based on provided uri
and RestTemplate
.uri
- the uri
to send requests.restTemplate
- RestTemplate
to use.public static <P> HttpMessageHandlerSpec outboundGateway(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction, org.springframework.web.client.RestTemplate restTemplate)
HttpMessageHandlerSpec
builder for request-reply gateway
based on provided Function
to evaluate target uri
against request message
and RestTemplate
for HTTP exchanges.P
- the expected payload type.uriFunction
- the Function
to evaluate uri
at runtime.restTemplate
- RestTemplate
to use.public static HttpMessageHandlerSpec outboundGateway(org.springframework.expression.Expression uriExpression, org.springframework.web.client.RestTemplate restTemplate)
HttpMessageHandlerSpec
builder for request-reply gateway
based on provided SpEL Expression
to evaluate target uri
against request message and RestTemplate
for HTTP exchanges.uriExpression
- the SpEL Expression
to evaluate uri
at runtime.restTemplate
- RestTemplate
to use.public static HttpControllerEndpointSpec inboundControllerAdapter(java.lang.String viewName, java.lang.String... path)
HttpControllerEndpointSpec
builder for one-way adapter
based on the provided MVC viewName
and path
array for mapping.viewName
- the MVC view name to build in the end of request.path
- the path mapping URIs (e.g. "/myPath.do").public static HttpControllerEndpointSpec inboundControllerAdapter(org.springframework.expression.Expression viewExpression, java.lang.String... path)
HttpControllerEndpointSpec
builder for one-way adapter
based on the provided SpEL expression and path
array for mapping.viewExpression
- the SpEL expression to evaluate MVC view name to build in the end of request.path
- the path mapping URIs (e.g. "/myPath.do").public static HttpControllerEndpointSpec inboundControllerGateway(java.lang.String viewName, java.lang.String... path)
HttpControllerEndpointSpec
builder for request-reply gateway
based on the provided MVC viewName
and path
array for mapping.viewName
- the MVC view name to build in the end of request.path
- the path mapping URIs (e.g. "/myPath.do").public static HttpControllerEndpointSpec inboundControllerGateway(org.springframework.expression.Expression viewExpression, java.lang.String... path)
HttpControllerEndpointSpec
builder for request-reply gateway
based on the provided SpEL expression and path
array for mapping.viewExpression
- the SpEL expression to evaluate MVC view name to build in the end of request.path
- the path mapping URIs (e.g. "/myPath.do").public static HttpRequestHandlerEndpointSpec inboundChannelAdapter(java.lang.String... path)
HttpRequestHandlerEndpointSpec
builder for one-way adapter
based on the provided path
array for mapping.path
- the path mapping URIs (e.g. "/myPath.do").public static HttpRequestHandlerEndpointSpec inboundGateway(java.lang.String... path)
HttpRequestHandlerEndpointSpec
builder for request-reply gateway
based on the provided path
array for mapping.path
- the path mapping URIs (e.g. "/myPath.do").