Class Http
java.lang.Object
org.springframework.integration.http.dsl.Http
public final class Http
extends java.lang.Object
The HTTP components Factory.
- Since:
- 5.0
-
Method Summary
Modifier and Type Method Description static HttpRequestHandlerEndpointSpecinboundChannelAdapter(java.lang.String... path)Create anHttpRequestHandlerEndpointSpecbuilder for one-way adapter based on the providedpatharray for mapping.static HttpControllerEndpointSpecinboundControllerAdapter(java.lang.String viewName, java.lang.String... path)Create anHttpControllerEndpointSpecbuilder for one-way adapter based on the provided MVCviewNameandpatharray for mapping.static HttpControllerEndpointSpecinboundControllerAdapter(org.springframework.expression.Expression viewExpression, java.lang.String... path)Create anHttpControllerEndpointSpecbuilder for one-way adapter based on the provided SpEL expression andpatharray for mapping.static HttpControllerEndpointSpecinboundControllerGateway(java.lang.String viewName, java.lang.String... path)Create anHttpControllerEndpointSpecbuilder for request-reply gateway based on the provided MVCviewNameandpatharray for mapping.static HttpControllerEndpointSpecinboundControllerGateway(org.springframework.expression.Expression viewExpression, java.lang.String... path)Create anHttpControllerEndpointSpecbuilder for request-reply gateway based on the provided SpEL expression andpatharray for mapping.static HttpRequestHandlerEndpointSpecinboundGateway(java.lang.String... path)Create anHttpRequestHandlerEndpointSpecbuilder for request-reply gateway based on the providedpatharray for mapping.static HttpMessageHandlerSpecoutboundChannelAdapter(java.lang.String uri)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provideduri.static HttpMessageHandlerSpecoutboundChannelAdapter(java.lang.String uri, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provideduriandRestTemplate.static HttpMessageHandlerSpecoutboundChannelAdapter(java.net.URI uri)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedURI.static HttpMessageHandlerSpecoutboundChannelAdapter(java.net.URI uri, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedURIandRestTemplate.static <P> HttpMessageHandlerSpecoutboundChannelAdapter(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedFunctionto evaluate targeturiagainst request message.static <P> HttpMessageHandlerSpecoutboundChannelAdapter(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedFunctionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.static HttpMessageHandlerSpecoutboundChannelAdapter(org.springframework.expression.Expression uriExpression)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provided SpELExpressionto evaluate targeturiagainst request message.static HttpMessageHandlerSpecoutboundChannelAdapter(org.springframework.expression.Expression uriExpression, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provided SpELExpressionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.static HttpMessageHandlerSpecoutboundGateway(java.lang.String uri)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provideduri.static HttpMessageHandlerSpecoutboundGateway(java.lang.String uri, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provideduriandRestTemplate.static HttpMessageHandlerSpecoutboundGateway(java.net.URI uri)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedURI.static HttpMessageHandlerSpecoutboundGateway(java.net.URI uri, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedURIandRestTemplate.static <P> HttpMessageHandlerSpecoutboundGateway(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedFunctionto evaluate targeturiagainst request message.static <P> HttpMessageHandlerSpecoutboundGateway(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedFunctionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.static HttpMessageHandlerSpecoutboundGateway(org.springframework.expression.Expression uriExpression)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provided SpELExpressionto evaluate targeturiagainst request message.static HttpMessageHandlerSpecoutboundGateway(org.springframework.expression.Expression uriExpression, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provided SpELExpressionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.
-
Method Details
-
outboundChannelAdapter
Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedURI.- Parameters:
uri- theURIto send requests.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundChannelAdapter
Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provideduri.- Parameters:
uri- theurito send requests.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundChannelAdapter
public static <P> HttpMessageHandlerSpec outboundChannelAdapter(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedFunctionto evaluate targeturiagainst request message.- Type Parameters:
P- the expected payload type.- Parameters:
uriFunction- theFunctionto evaluateuriat runtime.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundChannelAdapter
public static HttpMessageHandlerSpec outboundChannelAdapter(org.springframework.expression.Expression uriExpression)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provided SpELExpressionto evaluate targeturiagainst request message.- Parameters:
uriExpression- the SpELExpressionto evaluateuriat runtime.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundChannelAdapter
public static HttpMessageHandlerSpec outboundChannelAdapter(java.net.URI uri, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedURIandRestTemplate.- Parameters:
uri- theURIto send requests.restTemplate-RestTemplateto use.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundChannelAdapter
public static HttpMessageHandlerSpec outboundChannelAdapter(java.lang.String uri, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provideduriandRestTemplate.- Parameters:
uri- theurito send requests.restTemplate-RestTemplateto use.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundChannelAdapter
public static <P> HttpMessageHandlerSpec outboundChannelAdapter(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedFunctionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.- Type Parameters:
P- the expected payload type.- Parameters:
uriFunction- theFunctionto evaluateuriat runtime.restTemplate-RestTemplateto use.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundChannelAdapter
public static HttpMessageHandlerSpec outboundChannelAdapter(org.springframework.expression.Expression uriExpression, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provided SpELExpressionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.- Parameters:
uriExpression- the SpELExpressionto evaluateuriat runtime.restTemplate-RestTemplateto use.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundGateway
Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedURI.- Parameters:
uri- theURIto send requests.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundGateway
Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provideduri.- Parameters:
uri- theurito send requests.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundGateway
public static <P> HttpMessageHandlerSpec outboundGateway(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedFunctionto evaluate targeturiagainst request message.- Type Parameters:
P- the expected payload type.- Parameters:
uriFunction- theFunctionto evaluateuriat runtime.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundGateway
public static HttpMessageHandlerSpec outboundGateway(org.springframework.expression.Expression uriExpression)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provided SpELExpressionto evaluate targeturiagainst request message.- Parameters:
uriExpression- the SpELExpressionto evaluateuriat runtime.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundGateway
public static HttpMessageHandlerSpec outboundGateway(java.net.URI uri, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedURIandRestTemplate.- Parameters:
uri- theURIto send requests.restTemplate-RestTemplateto use.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundGateway
public static HttpMessageHandlerSpec outboundGateway(java.lang.String uri, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provideduriandRestTemplate.- Parameters:
uri- theurito send requests.restTemplate-RestTemplateto use.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundGateway
public static <P> HttpMessageHandlerSpec outboundGateway(java.util.function.Function<org.springframework.messaging.Message<P>,?> uriFunction, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedFunctionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.- Type Parameters:
P- the expected payload type.- Parameters:
uriFunction- theFunctionto evaluateuriat runtime.restTemplate-RestTemplateto use.- Returns:
- the HttpMessageHandlerSpec instance
-
outboundGateway
public static HttpMessageHandlerSpec outboundGateway(org.springframework.expression.Expression uriExpression, org.springframework.web.client.RestTemplate restTemplate)Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provided SpELExpressionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.- Parameters:
uriExpression- the SpELExpressionto evaluateuriat runtime.restTemplate-RestTemplateto use.- Returns:
- the HttpMessageHandlerSpec instance
-
inboundControllerAdapter
public static HttpControllerEndpointSpec inboundControllerAdapter(java.lang.String viewName, java.lang.String... path)Create anHttpControllerEndpointSpecbuilder for one-way adapter based on the provided MVCviewNameandpatharray for mapping.- Parameters:
viewName- the MVC view name to build in the end of request.path- the path mapping URIs (e.g. "/myPath.do").- Returns:
- the HttpControllerEndpointSpec instance
-
inboundControllerAdapter
public static HttpControllerEndpointSpec inboundControllerAdapter(org.springframework.expression.Expression viewExpression, java.lang.String... path)Create anHttpControllerEndpointSpecbuilder for one-way adapter based on the provided SpEL expression andpatharray for mapping.- Parameters:
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").- Returns:
- the HttpControllerEndpointSpec instance
-
inboundControllerGateway
public static HttpControllerEndpointSpec inboundControllerGateway(java.lang.String viewName, java.lang.String... path)Create anHttpControllerEndpointSpecbuilder for request-reply gateway based on the provided MVCviewNameandpatharray for mapping.- Parameters:
viewName- the MVC view name to build in the end of request.path- the path mapping URIs (e.g. "/myPath.do").- Returns:
- the HttpControllerEndpointSpec instance
-
inboundControllerGateway
public static HttpControllerEndpointSpec inboundControllerGateway(org.springframework.expression.Expression viewExpression, java.lang.String... path)Create anHttpControllerEndpointSpecbuilder for request-reply gateway based on the provided SpEL expression andpatharray for mapping.- Parameters:
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").- Returns:
- the HttpControllerEndpointSpec instance
-
inboundChannelAdapter
Create anHttpRequestHandlerEndpointSpecbuilder for one-way adapter based on the providedpatharray for mapping.- Parameters:
path- the path mapping URIs (e.g. "/myPath.do").- Returns:
- the HttpRequestHandlerEndpointSpec instance
-
inboundGateway
Create anHttpRequestHandlerEndpointSpecbuilder for request-reply gateway based on the providedpatharray for mapping.- Parameters:
path- the path mapping URIs (e.g. "/myPath.do").- Returns:
- the HttpRequestHandlerEndpointSpec instance
-