public abstract class AbstractWebServiceOutboundGateway extends AbstractReplyProducingMessageHandler
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractWebServiceOutboundGateway.RequestMessageCallback |
protected class |
AbstractWebServiceOutboundGateway.ResponseMessageExtractor |
AbstractReplyProducingMessageHandler.RequestHandler
IntegrationManagement.ManagementOverrides
Modifier and Type | Field and Description |
---|---|
protected DefaultUriBuilderFactory |
uriFactory |
messagingTemplate
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
AbstractWebServiceOutboundGateway(DestinationProvider destinationProvider,
WebServiceMessageFactory messageFactory) |
AbstractWebServiceOutboundGateway(String uri,
WebServiceMessageFactory messageFactory) |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
doHandle(String theUri,
Message<?> requestMessage,
WebServiceMessageCallback reqCallback) |
protected void |
doInit() |
protected void |
doSetWebServiceTemplate(WebServiceTemplate template) |
protected WebServiceTemplate |
getWebServiceTemplate() |
Object |
handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
|
void |
setEncodeUri(boolean encodeUri)
Deprecated.
since 5.3 in favor of
setEncodingMode(org.springframework.web.util.DefaultUriBuilderFactory.EncodingMode) |
void |
setEncodingMode(DefaultUriBuilderFactory.EncodingMode encodingMode)
Set the encoding mode to use.
|
void |
setFaultMessageResolver(FaultMessageResolver faultMessageResolver) |
void |
setHeaderMapper(SoapHeaderMapper headerMapper) |
void |
setIgnoreEmptyResponses(boolean ignoreEmptyResponses)
Specify whether empty String response payloads should be ignored.
|
void |
setInterceptors(ClientInterceptor... interceptors) |
void |
setMessageFactory(WebServiceMessageFactory messageFactory) |
void |
setMessageSender(WebServiceMessageSender messageSender)
Deprecated.
in favor of
setMessageSenders(WebServiceMessageSender...) |
void |
setMessageSenders(WebServiceMessageSender... messageSenders) |
void |
setReplyChannel(MessageChannel replyChannel) |
void |
setRequestCallback(WebServiceMessageCallback requestCallback) |
void |
setUriVariableExpressions(Map<String,Expression> uriVariableExpressions)
Set the Map of URI variable expressions to evaluate against the outbound message
when replacing the variable placeholders in a URI template.
|
void |
setWebServiceTemplate(WebServiceTemplate webServiceTemplate) |
doInvokeAdvisedRequestHandler, getBeanClassLoader, getIntegrationPatternType, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReply
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeaders
handleMessage, onComplete, onError, onNext, onSubscribe
buildSendTimer, destroy, getComponentType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
protected final DefaultUriBuilderFactory uriFactory
public AbstractWebServiceOutboundGateway(String uri, WebServiceMessageFactory messageFactory)
public AbstractWebServiceOutboundGateway(DestinationProvider destinationProvider, WebServiceMessageFactory messageFactory)
public void setHeaderMapper(SoapHeaderMapper headerMapper)
public void setUriVariableExpressions(Map<String,Expression> uriVariableExpressions)
uriVariableExpressions
- The URI variable expressions.@Deprecated public void setEncodeUri(boolean encodeUri)
setEncodingMode(org.springframework.web.util.DefaultUriBuilderFactory.EncodingMode)
uriVariables
are expanded and before sending the request. The default value is true
.encodeUri
- true if the URI should be encoded.UriComponentsBuilder
public void setEncodingMode(DefaultUriBuilderFactory.EncodingMode encodingMode)
DefaultUriBuilderFactory.EncodingMode#TEMPLATE_AND_VALUES
.encodingMode
- the mode to use for uri encodingpublic void setReplyChannel(MessageChannel replyChannel)
public void setIgnoreEmptyResponses(boolean ignoreEmptyResponses)
true
. Set this to false
if
you want to send empty String responses in reply Messages.ignoreEmptyResponses
- true if empty responses should be ignored.public void setWebServiceTemplate(WebServiceTemplate webServiceTemplate)
protected final void doSetWebServiceTemplate(WebServiceTemplate template)
public void setMessageFactory(WebServiceMessageFactory messageFactory)
public void setRequestCallback(WebServiceMessageCallback requestCallback)
public void setFaultMessageResolver(FaultMessageResolver faultMessageResolver)
@Deprecated public void setMessageSender(WebServiceMessageSender messageSender)
setMessageSenders(WebServiceMessageSender...)
WebServiceMessageSender
to use.messageSender
- the sender.public void setMessageSenders(WebServiceMessageSender... messageSenders)
public void setInterceptors(ClientInterceptor... interceptors)
protected void doInit()
doInit
in class AbstractReplyProducingMessageHandler
protected WebServiceTemplate getWebServiceTemplate()
public final Object handleRequestMessage(Message<?> requestMessage)
AbstractReplyProducingMessageHandler
handleRequestMessage
in class AbstractReplyProducingMessageHandler
requestMessage
- The request message.null
.protected abstract Object doHandle(String theUri, Message<?> requestMessage, WebServiceMessageCallback reqCallback)