public abstract class AbstractWebServiceOutboundGateway extends AbstractReplyProducingMessageHandler
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractWebServiceOutboundGateway.RequestMessageCallback |
protected class |
AbstractWebServiceOutboundGateway.ResponseMessageExtractor |
AbstractReplyProducingMessageHandler.RequestHandler
Modifier and Type | Field and Description |
---|---|
protected SoapHeaderMapper |
headerMapper |
logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
AbstractWebServiceOutboundGateway(DestinationProvider destinationProvider,
WebServiceMessageFactory messageFactory) |
AbstractWebServiceOutboundGateway(String uri,
WebServiceMessageFactory messageFactory) |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
doHandle(String uri,
Message<?> requestMessage,
WebServiceMessageCallback requestCallback) |
protected void |
doInit() |
protected WebServiceTemplate |
getWebServiceTemplate() |
Object |
handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
|
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) |
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.
|
doInvokeAdvisedRequestHandler, getMessagingTemplate, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setChannelResolver, setOutputChannel, setOutputChannelName, setRequiresReply, setSendTimeout, shouldCopyRequestHeaders
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
protected volatile SoapHeaderMapper headerMapper
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.public 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 setMessageFactory(WebServiceMessageFactory messageFactory)
public void setRequestCallback(WebServiceMessageCallback requestCallback)
public void setFaultMessageResolver(FaultMessageResolver faultMessageResolver)
public void setMessageSender(WebServiceMessageSender messageSender)
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 uri, Message<?> requestMessage, WebServiceMessageCallback requestCallback)