public final class Http extends Object
Modifier and Type | Method and Description |
---|---|
static HttpRequestHandlerEndpointSpec |
inboundChannelAdapter(String... path)
Create an
HttpRequestHandlerEndpointSpec builder for one-way adapter
based on the provided path array for mapping. |
static HttpControllerEndpointSpec |
inboundControllerAdapter(Expression viewExpression,
String... path)
Create an
HttpControllerEndpointSpec builder for one-way adapter
based on the provided SpEL expression and path array for mapping. |
static HttpControllerEndpointSpec |
inboundControllerAdapter(String viewName,
String... path)
Create an
HttpControllerEndpointSpec builder for one-way adapter
based on the provided MVC viewName and path array for mapping. |
static HttpControllerEndpointSpec |
inboundControllerGateway(Expression viewExpression,
String... path)
Create an
HttpControllerEndpointSpec builder for request-reply gateway
based on the provided SpEL expression and path array for mapping. |
static HttpControllerEndpointSpec |
inboundControllerGateway(String viewName,
String... path)
Create an
HttpControllerEndpointSpec builder for request-reply gateway
based on the provided MVC viewName and path array for mapping. |
static HttpRequestHandlerEndpointSpec |
inboundGateway(String... path)
Create an
HttpRequestHandlerEndpointSpec builder for request-reply gateway
based on the provided path array for mapping. |
static HttpMessageHandlerSpec |
outboundChannelAdapter(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(Expression uriExpression,
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<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<Message<P>,?> uriFunction,
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(String uri)
Create an
HttpMessageHandlerSpec builder for one-way adapter based on provided uri . |
static HttpMessageHandlerSpec |
outboundChannelAdapter(String uri,
RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for one-way adapter
based on provided uri and RestTemplate . |
static HttpMessageHandlerSpec |
outboundChannelAdapter(URI uri)
Create an
HttpMessageHandlerSpec builder for one-way adapter based on provided URI . |
static HttpMessageHandlerSpec |
outboundChannelAdapter(URI uri,
RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for one-way adapter
based on provided URI and RestTemplate . |
static HttpMessageHandlerSpec |
outboundGateway(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(Expression uriExpression,
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<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<Message<P>,?> uriFunction,
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(String uri)
Create an
HttpMessageHandlerSpec builder for request-reply gateway based on provided uri . |
static HttpMessageHandlerSpec |
outboundGateway(String uri,
RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for request-reply gateway
based on provided uri and RestTemplate . |
static HttpMessageHandlerSpec |
outboundGateway(URI uri)
Create an
HttpMessageHandlerSpec builder for request-reply gateway based on provided URI . |
static HttpMessageHandlerSpec |
outboundGateway(URI uri,
RestTemplate restTemplate)
Create an
HttpMessageHandlerSpec builder for request-reply gateway
based on provided URI and RestTemplate . |
public static HttpMessageHandlerSpec outboundChannelAdapter(URI uri)
HttpMessageHandlerSpec
builder for one-way adapter based on provided URI
.uri
- the URI
to send requests.public static HttpMessageHandlerSpec outboundChannelAdapter(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<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(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(URI uri, 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(String uri, 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<Message<P>,?> uriFunction, 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(Expression uriExpression, 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(URI uri)
HttpMessageHandlerSpec
builder for request-reply gateway based on provided URI
.uri
- the URI
to send requests.public static HttpMessageHandlerSpec outboundGateway(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<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(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(URI uri, 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(String uri, 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<Message<P>,?> uriFunction, 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(Expression uriExpression, 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(String viewName, 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(Expression viewExpression, 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(String viewName, 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(Expression viewExpression, 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(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(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").