public class HttpMessageHandlerSpec extends BaseHttpMessageHandlerSpec<HttpMessageHandlerSpec,HttpRequestExecutingMessageHandler>
BaseHttpMessageHandlerSpec
implementation for the HttpRequestExecutingMessageHandler
.HttpRequestExecutingMessageHandler
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
HttpMessageHandlerSpec(Expression uriExpression,
RestTemplate restTemplate) |
protected |
HttpMessageHandlerSpec(String uri,
RestTemplate restTemplate) |
protected |
HttpMessageHandlerSpec(URI uri,
RestTemplate restTemplate) |
Modifier and Type | Method and Description |
---|---|
HttpMessageHandlerSpec |
errorHandler(ResponseErrorHandler errorHandler)
Set the
ResponseErrorHandler for the underlying RestTemplate . |
protected boolean |
isClientSet() |
HttpMessageHandlerSpec |
messageConverters(HttpMessageConverter<?>... messageConverters)
Set a list of
HttpMessageConverter s to be used by the underlying RestTemplate . |
HttpMessageHandlerSpec |
requestFactory(ClientHttpRequestFactory requestFactory)
Set the
ClientHttpRequestFactory for the underlying RestTemplate . |
charset, encodeUri, encodingMode, expectedResponseType, expectedResponseType, expectedResponseTypeExpression, expectedResponseTypeFunction, expectReply, extractPayload, getComponentsToRegister, headerMapper, httpMethod, httpMethodExpression, httpMethodFunction, mappedRequestHeaders, mappedResponseHeaders, transferCookies, uriVariable, uriVariable, uriVariable, uriVariableExpressions, uriVariablesExpression, uriVariablesExpression, uriVariablesFunction
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected HttpMessageHandlerSpec(URI uri, RestTemplate restTemplate)
protected HttpMessageHandlerSpec(String uri, RestTemplate restTemplate)
protected HttpMessageHandlerSpec(Expression uriExpression, RestTemplate restTemplate)
public HttpMessageHandlerSpec requestFactory(ClientHttpRequestFactory requestFactory)
ClientHttpRequestFactory
for the underlying RestTemplate
.requestFactory
- The request factory.public HttpMessageHandlerSpec errorHandler(ResponseErrorHandler errorHandler)
ResponseErrorHandler
for the underlying RestTemplate
.errorHandler
- The error handler.public HttpMessageHandlerSpec messageConverters(HttpMessageConverter<?>... messageConverters)
HttpMessageConverter
s to be used by the underlying RestTemplate
.
Converters configured via this method will override the default converters.messageConverters
- The message converters.protected boolean isClientSet()
isClientSet
in class BaseHttpMessageHandlerSpec<HttpMessageHandlerSpec,HttpRequestExecutingMessageHandler>