Class Http
java.lang.Object
org.springframework.integration.http.dsl.Http
The HTTP components Factory.
- Since:
 - 5.0
 - Author:
 - Artem Bilan, Shiliang Li
 
- 
Method Summary
Modifier and TypeMethodDescriptioninboundChannelAdapter(String... path) Create anHttpRequestHandlerEndpointSpecbuilder for one-way adapter based on the providedpatharray for mapping.static HttpControllerEndpointSpecinboundControllerAdapter(String viewName, String... path) Create anHttpControllerEndpointSpecbuilder for one-way adapter based on the provided MVCviewNameandpatharray for mapping.static HttpControllerEndpointSpecinboundControllerAdapter(Expression viewExpression, String... path) Create anHttpControllerEndpointSpecbuilder for one-way adapter based on the provided SpEL expression andpatharray for mapping.static HttpControllerEndpointSpecinboundControllerGateway(String viewName, String... path) Create anHttpControllerEndpointSpecbuilder for request-reply gateway based on the provided MVCviewNameandpatharray for mapping.static HttpControllerEndpointSpecinboundControllerGateway(Expression viewExpression, String... path) Create anHttpControllerEndpointSpecbuilder for request-reply gateway based on the provided SpEL expression andpatharray for mapping.inboundGateway(String... path) Create anHttpRequestHandlerEndpointSpecbuilder for request-reply gateway based on the providedpatharray for mapping.static HttpMessageHandlerSpecCreate anHttpMessageHandlerSpecbuilder for one-way adapter based on provideduri.static HttpMessageHandlerSpecoutboundChannelAdapter(String uri, RestTemplate restTemplate) Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provideduriandRestTemplate.static HttpMessageHandlerSpecCreate anHttpMessageHandlerSpecbuilder for one-way adapter based on providedURI.static HttpMessageHandlerSpecoutboundChannelAdapter(URI uri, RestTemplate restTemplate) Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedURIandRestTemplate.static <P> HttpMessageHandlerSpecoutboundChannelAdapter(Function<Message<P>, ?> uriFunction) Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedFunctionto evaluate targeturiagainst request message.static <P> HttpMessageHandlerSpecoutboundChannelAdapter(Function<Message<P>, ?> uriFunction, RestTemplate restTemplate) Create anHttpMessageHandlerSpecbuilder for one-way adapter based on providedFunctionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.static HttpMessageHandlerSpecoutboundChannelAdapter(Expression uriExpression) Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provided SpELExpressionto evaluate targeturiagainst request message.static HttpMessageHandlerSpecoutboundChannelAdapter(Expression uriExpression, RestTemplate restTemplate) Create anHttpMessageHandlerSpecbuilder for one-way adapter based on provided SpELExpressionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.static HttpMessageHandlerSpecoutboundGateway(String uri) Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provideduri.static HttpMessageHandlerSpecoutboundGateway(String uri, RestTemplate restTemplate) Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provideduriandRestTemplate.static HttpMessageHandlerSpecoutboundGateway(URI uri) Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedURI.static HttpMessageHandlerSpecoutboundGateway(URI uri, RestTemplate restTemplate) Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedURIandRestTemplate.static <P> HttpMessageHandlerSpecoutboundGateway(Function<Message<P>, ?> uriFunction) Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedFunctionto evaluate targeturiagainst request message.static <P> HttpMessageHandlerSpecoutboundGateway(Function<Message<P>, ?> uriFunction, RestTemplate restTemplate) Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on providedFunctionto evaluate targeturiagainst request message andRestTemplatefor HTTP exchanges.static HttpMessageHandlerSpecoutboundGateway(Expression uriExpression) Create anHttpMessageHandlerSpecbuilder for request-reply gateway based on provided SpELExpressionto evaluate targeturiagainst request message.static HttpMessageHandlerSpecoutboundGateway(Expression uriExpression, 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(Function<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
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(URI uri, @Nullable 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(String uri, @Nullable 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(Function<Message<P>, ?> uriFunction, 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(Expression uriExpression, @Nullable 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
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
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
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(String uri, @Nullable 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(Function<Message<P>, ?> uriFunction, 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(Expression uriExpression, @Nullable 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
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(Expression viewExpression, 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
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(Expression viewExpression, 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
 
 
 -