public class HttpMessageHandlerSpec extends MessageHandlerSpec<HttpMessageHandlerSpec,org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandler> implements ComponentsRegistration
MessageHandlerSpec
implementation for the HttpRequestExecutingMessageHandler
.HttpRequestExecutingMessageHandler
logger, PARSER, target
Modifier and Type | Method and Description |
---|---|
HttpMessageHandlerSpec |
charset(java.lang.String charset) |
protected org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandler |
doGet() |
HttpMessageHandlerSpec |
encodeUri(boolean encodeUri) |
HttpMessageHandlerSpec |
errorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler) |
HttpMessageHandlerSpec |
expectedResponseType(java.lang.Class<?> expectedResponseType) |
HttpMessageHandlerSpec |
expectedResponseType(org.springframework.core.ParameterizedTypeReference<?> expectedResponseType) |
HttpMessageHandlerSpec |
expectedResponseTypeExpression(org.springframework.expression.Expression expectedResponseTypeExpression) |
<P> HttpMessageHandlerSpec |
expectedResponseTypeFunction(Function<org.springframework.messaging.Message<P>,?> expectedResponseTypeFunction) |
HttpMessageHandlerSpec |
extractPayload(boolean extractPayload) |
java.util.Collection<java.lang.Object> |
getComponentsToRegister() |
HttpMessageHandlerSpec |
headerMapper(org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> headerMapper) |
HttpMessageHandlerSpec |
httpMethod(org.springframework.http.HttpMethod httpMethod) |
HttpMessageHandlerSpec |
httpMethodExpression(org.springframework.expression.Expression httpMethodExpression) |
<P> HttpMessageHandlerSpec |
httpMethodFunction(Function<org.springframework.messaging.Message<P>,?> httpMethodFunction) |
HttpMessageHandlerSpec |
mappedRequestHeaders(java.lang.String... patterns) |
HttpMessageHandlerSpec |
mappedResponseHeaders(java.lang.String... patterns) |
HttpMessageHandlerSpec |
messageConverters(org.springframework.http.converter.HttpMessageConverter<?>... messageConverters) |
HttpMessageHandlerSpec |
requestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory) |
HttpMessageHandlerSpec |
transferCookies(boolean transferCookies) |
HttpMessageHandlerSpec |
uriVariable(java.lang.String variable,
org.springframework.expression.Expression value) |
<P> HttpMessageHandlerSpec |
uriVariable(java.lang.String variable,
Function<org.springframework.messaging.Message<P>,?> valueFunction) |
HttpMessageHandlerSpec |
uriVariable(java.lang.String variable,
java.lang.String value) |
HttpMessageHandlerSpec |
uriVariableExpressions(java.util.Map<java.lang.String,org.springframework.expression.Expression> uriVariableExpressions) |
HttpMessageHandlerSpec |
uriVariablesExpression(org.springframework.expression.Expression uriVariablesExpression) |
HttpMessageHandlerSpec |
uriVariablesExpression(java.lang.String uriVariablesExpression) |
<P> HttpMessageHandlerSpec |
uriVariablesFunction(Function<org.springframework.messaging.Message<P>,java.util.Map<java.lang.String,?>> uriVariablesFunction) |
_this, get, getId, getObject, getObjectType, id, isSingleton
public HttpMessageHandlerSpec encodeUri(boolean encodeUri)
public HttpMessageHandlerSpec httpMethodExpression(org.springframework.expression.Expression httpMethodExpression)
public <P> HttpMessageHandlerSpec httpMethodFunction(Function<org.springframework.messaging.Message<P>,?> httpMethodFunction)
public HttpMessageHandlerSpec httpMethod(org.springframework.http.HttpMethod httpMethod)
public HttpMessageHandlerSpec extractPayload(boolean extractPayload)
public HttpMessageHandlerSpec charset(java.lang.String charset)
public HttpMessageHandlerSpec expectedResponseType(java.lang.Class<?> expectedResponseType)
public HttpMessageHandlerSpec expectedResponseType(org.springframework.core.ParameterizedTypeReference<?> expectedResponseType)
public HttpMessageHandlerSpec expectedResponseTypeExpression(org.springframework.expression.Expression expectedResponseTypeExpression)
public <P> HttpMessageHandlerSpec expectedResponseTypeFunction(Function<org.springframework.messaging.Message<P>,?> expectedResponseTypeFunction)
public HttpMessageHandlerSpec errorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler)
public HttpMessageHandlerSpec messageConverters(org.springframework.http.converter.HttpMessageConverter<?>... messageConverters)
public HttpMessageHandlerSpec requestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
public HttpMessageHandlerSpec headerMapper(org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> headerMapper)
public HttpMessageHandlerSpec mappedRequestHeaders(java.lang.String... patterns)
public HttpMessageHandlerSpec mappedResponseHeaders(java.lang.String... patterns)
public HttpMessageHandlerSpec uriVariableExpressions(java.util.Map<java.lang.String,org.springframework.expression.Expression> uriVariableExpressions)
public HttpMessageHandlerSpec uriVariable(java.lang.String variable, org.springframework.expression.Expression value)
public HttpMessageHandlerSpec uriVariable(java.lang.String variable, java.lang.String value)
variable
- the uri template variable.value
- the expression to evaluate value for te uri template variable.HttpRequestExecutingMessageHandler.setUriVariableExpressions(Map)
public <P> HttpMessageHandlerSpec uriVariable(java.lang.String variable, Function<org.springframework.messaging.Message<P>,?> valueFunction)
P
- the payload type.variable
- the uri template variable.valueFunction
- the function to evaluate value for te uri template variable.HttpRequestExecutingMessageHandler.setUriVariableExpressions(Map)
public HttpMessageHandlerSpec uriVariablesExpression(org.springframework.expression.Expression uriVariablesExpression)
public HttpMessageHandlerSpec uriVariablesExpression(java.lang.String uriVariablesExpression)
uriVariablesExpression
- to use.HttpRequestExecutingMessageHandler.setUriVariablesExpression(Expression)
public <P> HttpMessageHandlerSpec uriVariablesFunction(Function<org.springframework.messaging.Message<P>,java.util.Map<java.lang.String,?>> uriVariablesFunction)
P
- the payload type.uriVariablesFunction
- to use.HttpRequestExecutingMessageHandler.setUriVariablesExpression(Expression)
public HttpMessageHandlerSpec transferCookies(boolean transferCookies)
public java.util.Collection<java.lang.Object> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration
protected org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandler doGet()
doGet
in class IntegrationComponentSpec<HttpMessageHandlerSpec,org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandler>