Class BaseWsOutboundGatewaySpec<S extends BaseWsOutboundGatewaySpec<S,E>,E extends AbstractWebServiceOutboundGateway>

Type Parameters:
S - the target BaseWsOutboundGatewaySpec implementation type.
E - the target AbstractWebServiceOutboundGateway implementation type.
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<E>, InitializingBean, Lifecycle, Phased, SmartLifecycle
Direct Known Subclasses:
MarshallingWsOutboundGatewaySpec, MarshallingWsOutboundGatewaySpec.MarshallingWsOutboundGatewayNoTemplateSpec, SimpleWsOutboundGatewaySpec, SimpleWsOutboundGatewaySpec.SimpleWsOutboundGatewayNoTemplateSpec

public abstract class BaseWsOutboundGatewaySpec<S extends BaseWsOutboundGatewaySpec<S,E>,E extends AbstractWebServiceOutboundGateway> extends MessageHandlerSpec<S,E>
Since:
5.3
Author:
Gary Russell, Artem Bilan
  • Field Details

  • Constructor Details

    • BaseWsOutboundGatewaySpec

      public BaseWsOutboundGatewaySpec()
  • Method Details

    • destinationProvider

      public S destinationProvider(DestinationProvider destinationProvider)
      Configure with a destination provider;
      Parameters:
      destinationProvider - the destination provider.
      Returns:
      the spec.
    • uri

      public S uri(String uri)
      Configure with a URI.
      Parameters:
      uri - the uri.
      Returns:
      the spec.
    • headerMapper

      public S headerMapper(SoapHeaderMapper headerMapper)
      Configure the header mapper.
      Parameters:
      headerMapper - the mapper.
      Returns:
      the spec.
    • uriVariableExpressions

      public S uriVariableExpressions(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.
      Returns:
      the spec.
    • encodingMode

      public S encodingMode(DefaultUriBuilderFactory.EncodingMode encodingMode)
      Specify a DefaultUriBuilderFactory.EncodingMode for uri construction.
      Parameters:
      encodingMode - to use for uri construction.
      Returns:
      the spec
    • ignoreEmptyResponses

      public S ignoreEmptyResponses(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.
      Returns:
      the spec.
    • requestCallback

      public S requestCallback(WebServiceMessageCallback requestCallback)
      Specify the WebServiceMessageCallback to use.
      Parameters:
      requestCallback - the call back.
      Returns:
      the spec.
    • doGet

      protected E doGet()
      Overrides:
      doGet in class IntegrationComponentSpec<S extends BaseWsOutboundGatewaySpec<S,E>,E extends AbstractWebServiceOutboundGateway>
    • create

      protected abstract E create()
    • assemble

      protected E assemble(E gateway)