Class AbstractWebServiceOutboundGateway

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ExpressionCapable, Orderable, MessageProducer, HeaderPropagationAware, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>
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, Oleg Zhurakousky, Gary Russell, Artem Bilan
  • Field Details

  • Constructor Details

  • Method Details

    • setHeaderMapper

      public void setHeaderMapper(SoapHeaderMapper headerMapper)
    • setUriVariableExpressions

      public 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.
      Parameters:
      uriVariableExpressions - The URI variable expressions.
    • setEncodingMode

      public void setEncodingMode(DefaultUriBuilderFactory.EncodingMode encodingMode)
      Set the encoding mode to use. By default, this is set to DefaultUriBuilderFactory.EncodingMode.TEMPLATE_AND_VALUES.
      Parameters:
      encodingMode - the mode to use for uri encoding
      Since:
      5.3
    • 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.
      Parameters:
      ignoreEmptyResponses - true if empty responses should be ignored.
    • setWebServiceTemplate

      public void setWebServiceTemplate(WebServiceTemplate webServiceTemplate)
    • doSetWebServiceTemplate

      protected final void doSetWebServiceTemplate(WebServiceTemplate template)
    • setMessageFactory

      public void setMessageFactory(WebServiceMessageFactory messageFactory)
    • setRequestCallback

      public void setRequestCallback(WebServiceMessageCallback requestCallback)
    • setFaultMessageResolver

      public void setFaultMessageResolver(FaultMessageResolver faultMessageResolver)
    • setMessageSenders

      public void setMessageSenders(WebServiceMessageSender... messageSenders)
    • setInterceptors

      public void setInterceptors(ClientInterceptor... interceptors)
    • doInit

      protected void doInit()
      Overrides:
      doInit in class AbstractReplyProducingMessageHandler
    • getWebServiceTemplate

      protected WebServiceTemplate getWebServiceTemplate()
    • handleRequestMessage

      public final Object handleRequestMessage(Message<?> requestMessage)
      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
      Parameters:
      requestMessage - The request message.
      Returns:
      The result of handling the message, or null.
    • doHandle

      protected abstract Object doHandle(String theUri, Message<?> requestMessage, WebServiceMessageCallback reqCallback)