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, MessageHandler, MessageProducer, TrackableComponent
- 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
Constructor Summary |
AbstractWebServiceOutboundGateway(org.springframework.ws.client.support.destination.DestinationProvider destinationProvider,
org.springframework.ws.WebServiceMessageFactory messageFactory)
|
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
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 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 Object doHandle(Object requestPayload,
org.springframework.ws.client.core.WebServiceMessageCallback requestCallback)
Copyright © 2010. All Rights Reserved.