org.springframework.integration.ws
Class AbstractWebServiceOutboundGateway
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
org.springframework.integration.ws.AbstractWebServiceOutboundGateway
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, Orderable, MessageHandler, MessageProducer, TrackableComponent
- Direct Known Subclasses:
- MarshallingWebServiceOutboundGateway, SimpleWebServiceOutboundGateway
public abstract class AbstractWebServiceOutboundGateway
- extends AbstractReplyProducingMessageHandler
Base class for outbound Web Service-invoking Messaging Gateways.
Constructor Summary |
AbstractWebServiceOutboundGateway(org.springframework.ws.client.support.destination.DestinationProvider destinationProvider,
org.springframework.ws.WebServiceMessageFactory messageFactory)
|
Method Summary |
protected abstract java.lang.Object |
doHandle(java.lang.Object requestPayload,
org.springframework.ws.client.core.WebServiceMessageCallback requestCallback)
|
protected org.springframework.ws.client.core.WebServiceTemplate |
getWebServiceTemplate()
|
java.lang.Object |
handleRequestMessage(Message<?> message)
Subclasses must implement this method to handle the request Message. |
void |
setFaultMessageResolver(org.springframework.ws.client.core.FaultMessageResolver faultMessageResolver)
|
void |
setIgnoreEmptyResponses(boolean ignoreEmptyResponses)
Specify whether empty String response payloads should be ignored. |
void |
setInterceptors(org.springframework.ws.client.support.interceptor.ClientInterceptor[] interceptors)
|
void |
setMessageFactory(org.springframework.ws.WebServiceMessageFactory messageFactory)
|
void |
setMessageSender(org.springframework.ws.transport.WebServiceMessageSender messageSender)
|
void |
setMessageSenders(org.springframework.ws.transport.WebServiceMessageSender[] messageSenders)
|
void |
setReplyChannel(MessageChannel replyChannel)
|
void |
setRequestCallback(org.springframework.ws.client.core.WebServiceMessageCallback requestCallback)
|
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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)
setInterceptors
public void setInterceptors(org.springframework.ws.client.support.interceptor.ClientInterceptor[] interceptors)
getWebServiceTemplate
protected org.springframework.ws.client.core.WebServiceTemplate getWebServiceTemplate()
handleRequestMessage
public final java.lang.Object handleRequestMessage(Message<?> message)
- Description copied from class:
AbstractReplyProducingMessageHandler
- Subclasses must implement this method to handle the request Message. The return
value may be a Message, a MessageBuilder, or any plain Object. The base class
will handle the final creation of a reply Message from any of those starting
points. If the return value is null, the Message flow will end here.
- Specified by:
handleRequestMessage
in class AbstractReplyProducingMessageHandler
doHandle
protected abstract java.lang.Object doHandle(java.lang.Object requestPayload,
org.springframework.ws.client.core.WebServiceMessageCallback requestCallback)