Class HttpMessageHandlerSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<S,E>
org.springframework.integration.http.dsl.BaseHttpMessageHandlerSpec<HttpMessageHandlerSpec,HttpRequestExecutingMessageHandler>
org.springframework.integration.http.dsl.HttpMessageHandlerSpec
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<HttpRequestExecutingMessageHandler>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
public class HttpMessageHandlerSpec
extends BaseHttpMessageHandlerSpec<HttpMessageHandlerSpec,HttpRequestExecutingMessageHandler>
The
BaseHttpMessageHandlerSpec
implementation for the HttpRequestExecutingMessageHandler
.- Since:
- 5.0
- Author:
- Artem Bilan, Shiliang Li, Oleksii Komlyk
- See Also:
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ModifierConstructorDescriptionprotected
HttpMessageHandlerSpec
(String uri, RestTemplate restTemplate) protected
HttpMessageHandlerSpec
(URI uri, RestTemplate restTemplate) protected
HttpMessageHandlerSpec
(Expression uriExpression, RestTemplate restTemplate) -
Method Summary
Modifier and TypeMethodDescriptionerrorHandler
(ResponseErrorHandler errorHandler) Set theResponseErrorHandler
for the underlyingRestTemplate
.protected boolean
messageConverters
(HttpMessageConverter<?>... messageConverters) Set a list ofHttpMessageConverter
s to be used by the underlyingRestTemplate
.requestFactory
(ClientHttpRequestFactory requestFactory) Set theClientHttpRequestFactory
for the underlyingRestTemplate
.Methods inherited from class org.springframework.integration.http.dsl.BaseHttpMessageHandlerSpec
charset, encodingMode, expectedResponseType, expectedResponseType, expectedResponseTypeExpression, expectedResponseTypeFunction, expectReply, extractPayload, extractResponseBody, getComponentsToRegister, headerMapper, httpMethod, httpMethodExpression, httpMethodFunction, mappedRequestHeaders, mappedResponseHeaders, transferCookies, uriVariable, uriVariable, uriVariable, uriVariableExpressions, uriVariablesExpression, uriVariablesExpression, uriVariablesFunction
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
HttpMessageHandlerSpec
-
HttpMessageHandlerSpec
-
HttpMessageHandlerSpec
-
-
Method Details
-
requestFactory
Set theClientHttpRequestFactory
for the underlyingRestTemplate
.- Parameters:
requestFactory
- The request factory.- Returns:
- the spec
-
errorHandler
Set theResponseErrorHandler
for the underlyingRestTemplate
.- Parameters:
errorHandler
- The error handler.- Returns:
- the spec
-
messageConverters
Set a list ofHttpMessageConverter
s to be used by the underlyingRestTemplate
. Converters configured via this method will override the default converters.- Parameters:
messageConverters
- The message converters.- Returns:
- the spec
-
isClientSet
protected boolean isClientSet()- Specified by:
isClientSet
in classBaseHttpMessageHandlerSpec<HttpMessageHandlerSpec,
HttpRequestExecutingMessageHandler>
-