org.springframework.integration.ws
Class AbstractWebServiceOutboundGateway
java.lang.Object
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
org.springframework.integration.ws.AbstractWebServiceOutboundGateway
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.core.Ordered, MessageHandler
- Direct Known Subclasses:
- MarshallingWebServiceOutboundGateway, SimpleWebServiceOutboundGateway
public abstract class AbstractWebServiceOutboundGateway
- extends AbstractReplyProducingMessageHandler
Base class for outbound Web Service-invoking Messaging Gateways.
- Author:
- Mark Fisher, Jonas Partner
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary |
AbstractWebServiceOutboundGateway(org.springframework.ws.client.support.destination.DestinationProvider destinationProvider,
org.springframework.ws.WebServiceMessageFactory messageFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWebServiceOutboundGateway
public AbstractWebServiceOutboundGateway(org.springframework.ws.client.support.destination.DestinationProvider destinationProvider,
org.springframework.ws.WebServiceMessageFactory messageFactory)
setReplyChannel
public void setReplyChannel(MessageChannel replyChannel)
setIgnoreEmptyResponses
public void setIgnoreEmptyResponses(boolean ignoreEmptyResponses)
- Specify whether empty String response payloads should be ignored.
The default is
true
. Set this to false
if
you want to send empty String responses in reply Messages.
setMessageFactory
public void setMessageFactory(org.springframework.ws.WebServiceMessageFactory messageFactory)
setRequestCallback
public void setRequestCallback(org.springframework.ws.client.core.WebServiceMessageCallback requestCallback)
setFaultMessageResolver
public void setFaultMessageResolver(org.springframework.ws.client.core.FaultMessageResolver faultMessageResolver)
setMessageSender
public void setMessageSender(org.springframework.ws.transport.WebServiceMessageSender messageSender)
setMessageSenders
public void setMessageSenders(org.springframework.ws.transport.WebServiceMessageSender[] messageSenders)
getWebServiceTemplate
protected org.springframework.ws.client.core.WebServiceTemplate getWebServiceTemplate()
handleRequestMessage
public final void handleRequestMessage(Message<?> message,
ReplyMessageHolder replyHolder)
- Specified by:
handleRequestMessage
in class AbstractReplyProducingMessageHandler
doHandle
protected abstract java.lang.Object doHandle(java.lang.Object requestPayload,
org.springframework.ws.client.core.WebServiceMessageCallback requestCallback)