Class HttpMessageHandlerSpec
java.lang.Object
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:
- 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 SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedHttpMessageHandlerSpec(String uri, RestTemplate restTemplate) protectedHttpMessageHandlerSpec(URI uri, RestTemplate restTemplate) protectedHttpMessageHandlerSpec(Expression uriExpression, RestTemplate restTemplate) 
- 
Method SummaryModifier and TypeMethodDescriptionerrorHandler(ResponseErrorHandler errorHandler) Set theResponseErrorHandlerfor the underlyingRestTemplate.protected booleanmessageConverters(HttpMessageConverter<?>... messageConverters) Set a list ofHttpMessageConverters to be used by the underlyingRestTemplate.requestFactory(ClientHttpRequestFactory requestFactory) Set theClientHttpRequestFactoryfor the underlyingRestTemplate.Methods inherited from class org.springframework.integration.http.dsl.BaseHttpMessageHandlerSpeccharset, encodingMode, expectedResponseType, expectedResponseType, expectedResponseTypeExpression, expectedResponseTypeFunction, expectReply, extractPayload, extractResponseBody, getComponentsToRegister, headerMapper, httpMethod, httpMethodExpression, httpMethodFunction, mappedRequestHeaders, mappedResponseHeaders, transferCookies, uriVariable, uriVariable, uriVariable, uriVariableExpressions, uriVariablesExpression, uriVariablesExpression, uriVariablesFunctionMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
HttpMessageHandlerSpec
- 
HttpMessageHandlerSpec
- 
HttpMessageHandlerSpec
 
- 
- 
Method Details- 
requestFactorySet theClientHttpRequestFactoryfor the underlyingRestTemplate.- Parameters:
- requestFactory- The request factory.
- Returns:
- the spec
 
- 
errorHandlerSet theResponseErrorHandlerfor the underlyingRestTemplate.- Parameters:
- errorHandler- The error handler.
- Returns:
- the spec
 
- 
messageConvertersSet a list ofHttpMessageConverters to be used by the underlyingRestTemplate. Converters configured via this method will override the default converters.- Parameters:
- messageConverters- The message converters.
- Returns:
- the spec
 
- 
isClientSetprotected boolean isClientSet()- Specified by:
- isClientSetin class- BaseHttpMessageHandlerSpec<HttpMessageHandlerSpec,- HttpRequestExecutingMessageHandler> 
 
 
-