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 targetBaseWsOutboundGatewaySpec
implementation type.E
- the targetAbstractWebServiceOutboundGateway
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>
The base
MessageHandlerSpec
for AbstractWebServiceOutboundGateway
s.- Since:
- 5.3
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields Modifier and Type Field Description protected DestinationProvider
destinationProvider
protected boolean
extractPayload
protected FaultMessageResolver
faultMessageResolver
protected ClientInterceptor[]
gatewayInterceptors
protected WebServiceMessageSender[]
messageSenders
protected WebServiceTemplate
template
protected String
uri
protected WebServiceMessageFactory
webServiceMessageFactory
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Constructor Description BaseWsOutboundGatewaySpec()
-
Method Summary
Modifier and Type Method Description protected E
assemble(E gateway)
protected abstract E
create()
S
destinationProvider(DestinationProvider destinationProvider)
Configure with a destination provider;protected E
doGet()
S
encodingMode(DefaultUriBuilderFactory.EncodingMode encodingMode)
Specify aDefaultUriBuilderFactory.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(WebServiceMessageCallback requestCallback)
Specify theWebServiceMessageCallback
to use.S
uri(String uri)
Configure with a URI.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.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
-
Field Details
-
template
-
destinationProvider
-
uri
-
webServiceMessageFactory
-
faultMessageResolver
-
messageSenders
-
gatewayInterceptors
-
extractPayload
protected boolean extractPayload
-
-
Constructor Details
-
BaseWsOutboundGatewaySpec
public BaseWsOutboundGatewaySpec()
-
-
Method Details
-
destinationProvider
Configure with a destination provider;- Parameters:
destinationProvider
- the destination provider.- Returns:
- the spec.
-
uri
Configure with a URI.- Parameters:
uri
- the uri.- Returns:
- the spec.
-
headerMapper
Configure the header mapper.- Parameters:
headerMapper
- the mapper.- Returns:
- the spec.
-
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
Specify aDefaultUriBuilderFactory.EncodingMode
for uri construction.- Parameters:
encodingMode
- to use for uri construction.- Returns:
- the spec
-
ignoreEmptyResponses
Specify whether empty String response payloads should be ignored. The default istrue
. Set this tofalse
if you want to send empty String responses in reply Messages.- Parameters:
ignoreEmptyResponses
- true if empty responses should be ignored.- Returns:
- the spec.
-
requestCallback
Specify theWebServiceMessageCallback
to use.- Parameters:
requestCallback
- the call back.- Returns:
- the spec.
-
doGet
- Overrides:
doGet
in classIntegrationComponentSpec<S extends BaseWsOutboundGatewaySpec<S,E>,E extends AbstractWebServiceOutboundGateway>
-
create
-
assemble
-