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

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,​H>
org.springframework.integration.dsl.MessageHandlerSpec<S,​E>
org.springframework.integration.ws.dsl.BaseWsOutboundGatewaySpec<S,​E>
Type Parameters:
S - the target BaseWsOutboundGatewaySpec implementation type.
E - the target AbstractWebServiceOutboundGateway implementation type.
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<E>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
MarshallingWsOutboundGatewaySpec, MarshallingWsOutboundGatewaySpec.MarshallingWsOutboundGatewayNoTemplateSpec, SimpleWsOutboundGatewaySpec, SimpleWsOutboundGatewaySpec.SimpleWsOutboundGatewayNoTemplateSpec

public abstract class BaseWsOutboundGatewaySpec<S extends BaseWsOutboundGatewaySpec<S,​E>,​E extends AbstractWebServiceOutboundGateway>
extends org.springframework.integration.dsl.MessageHandlerSpec<S,​E>
The base MessageHandlerSpec for AbstractWebServiceOutboundGateways.
Since:
5.3
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.springframework.ws.client.support.destination.DestinationProvider destinationProvider  
    protected boolean extractPayload  
    protected org.springframework.ws.client.core.FaultMessageResolver faultMessageResolver  
    protected org.springframework.ws.client.support.interceptor.ClientInterceptor[] gatewayInterceptors  
    protected org.springframework.ws.transport.WebServiceMessageSender[] messageSenders  
    protected org.springframework.ws.client.core.WebServiceTemplate template  
    protected java.lang.String uri  
    protected org.springframework.ws.WebServiceMessageFactory webServiceMessageFactory  

    Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    PARSER, target

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors 
    Constructor Description
    BaseWsOutboundGatewaySpec()  
  • Method Summary

    Modifier and Type Method Description
    protected E assemble​(E gateway)  
    protected abstract E create()  
    S destinationProvider​(org.springframework.ws.client.support.destination.DestinationProvider destinationProvider)
    Configure with a destination provider;
    protected E doGet()  
    S encodingMode​(org.springframework.web.util.DefaultUriBuilderFactory.EncodingMode encodingMode)
    Specify a DefaultUriBuilderFactory.EncodingMode for uri construction.
    S headerMapper​(SoapHeaderMapper headerMapper)
    Configure the header mapper.
    S ignoreEmptyResponses​(boolean ignoreEmptyResponses)
    Specify whether empty String response payloads should be ignored.
    S requestCallback​(org.springframework.ws.client.core.WebServiceMessageCallback requestCallback)
    Specify the WebServiceMessageCallback to use.
    S uri​(java.lang.String uri)
    Configure with a URI.
    S uriVariableExpressions​(java.util.Map<java.lang.String,​org.springframework.expression.Expression> uriVariableExpressions)
    Set the Map of URI variable expressions to evaluate against the outbound message when replacing the variable placeholders in a URI template.

    Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    _this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • template

      protected org.springframework.ws.client.core.WebServiceTemplate template
    • destinationProvider

      protected org.springframework.ws.client.support.destination.DestinationProvider destinationProvider
    • uri

      protected java.lang.String uri
    • webServiceMessageFactory

      protected org.springframework.ws.WebServiceMessageFactory webServiceMessageFactory
    • faultMessageResolver

      protected org.springframework.ws.client.core.FaultMessageResolver faultMessageResolver
    • messageSenders

      protected org.springframework.ws.transport.WebServiceMessageSender[] messageSenders
    • gatewayInterceptors

      protected org.springframework.ws.client.support.interceptor.ClientInterceptor[] gatewayInterceptors
    • extractPayload

      protected boolean extractPayload
  • Constructor Details

  • Method Details

    • destinationProvider

      public S destinationProvider​(org.springframework.ws.client.support.destination.DestinationProvider destinationProvider)
      Configure with a destination provider;
      Parameters:
      destinationProvider - the destination provider.
      Returns:
      the spec.
    • uri

      public S uri​(java.lang.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​(java.util.Map<java.lang.String,​org.springframework.expression.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​(org.springframework.web.util.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​(org.springframework.ws.client.core.WebServiceMessageCallback requestCallback)
      Specify the WebServiceMessageCallback to use.
      Parameters:
      requestCallback - the call back.
      Returns:
      the spec.
    • doGet

      protected E doGet()
      Overrides:
      doGet in class org.springframework.integration.dsl.IntegrationComponentSpec<S extends BaseWsOutboundGatewaySpec<S,​E>,​E extends AbstractWebServiceOutboundGateway>
    • create

      protected abstract E create()
    • assemble

      protected E assemble​(E gateway)