public class ReactiveHttpRequestExecutingMessageHandler extends AbstractHttpRequestExecutingMessageHandler
MessageHandler implementation that executes HTTP requests by delegating
to a Reactive WebClient instance.HttpRequestExecutingMessageHandlerAbstractReplyProducingMessageHandler.RequestHandlermessagingTemplateEXPRESSION_PARSER, loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ReactiveHttpRequestExecutingMessageHandler(Expression uriExpression)
Create a handler that will send requests to the provided URI Expression.
|
ReactiveHttpRequestExecutingMessageHandler(Expression uriExpression,
org.springframework.web.reactive.function.client.WebClient webClient)
Create a handler that will send requests to the provided URI using a provided WebClient.
|
ReactiveHttpRequestExecutingMessageHandler(String uri)
Create a handler that will send requests to the provided URI.
|
ReactiveHttpRequestExecutingMessageHandler(String uri,
org.springframework.web.reactive.function.client.WebClient webClient)
Create a handler that will send requests to the provided URI using a provided WebClient.
|
ReactiveHttpRequestExecutingMessageHandler(URI uri)
Create a handler that will send requests to the provided URI.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
exchange(URI uri,
HttpMethod httpMethod,
HttpEntity<?> httpRequest,
Object expectedResponseType,
Message<?> requestMessage) |
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
doInit, getReply, handleRequestMessage, isExpectReply, mapHeaders, setCharset, setEncodeUri, setExpectedResponseType, setExpectedResponseTypeExpression, setExpectReply, setExtractPayload, setHeaderMapper, setHttpMethod, setHttpMethodExpression, setTransferCookies, setUriVariableExpressions, setUriVariablesExpressiondoInvokeAdvisedRequestHandler, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplycreateOutputMessage, getOutputChannel, isAsync, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutputconfigureMetrics, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onComplete, onError, onNext, onSubscribe, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic ReactiveHttpRequestExecutingMessageHandler(URI uri)
uri - The URI.public ReactiveHttpRequestExecutingMessageHandler(String uri)
uri - The URI.public ReactiveHttpRequestExecutingMessageHandler(Expression uriExpression)
uriExpression - The URI expression.public ReactiveHttpRequestExecutingMessageHandler(String uri, org.springframework.web.reactive.function.client.WebClient webClient)
uri - The URI.webClient - The WebClient to use.public ReactiveHttpRequestExecutingMessageHandler(Expression uriExpression, org.springframework.web.reactive.function.client.WebClient webClient)
uriExpression - A SpEL Expression that can be resolved against the message object and
BeanFactory.webClient - The WebClient to use.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageHandlerprotected Object exchange(URI uri, HttpMethod httpMethod, HttpEntity<?> httpRequest, Object expectedResponseType, Message<?> requestMessage)
exchange in class AbstractHttpRequestExecutingMessageHandler