Class AbstractWebServiceInboundGateway
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.gateway.MessagingGatewaySupport
org.springframework.integration.ws.AbstractWebServiceInboundGateway
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
,org.springframework.integration.context.ExpressionCapable
,org.springframework.integration.context.OrderlyShutdownCapable
,org.springframework.integration.IntegrationPattern
,org.springframework.integration.support.context.NamedComponent
,org.springframework.integration.support.management.IntegrationInboundManagement
,org.springframework.integration.support.management.IntegrationManagement
,org.springframework.integration.support.management.ManageableLifecycle
,org.springframework.integration.support.management.ManageableSmartLifecycle
,org.springframework.integration.support.management.TrackableComponent
,org.springframework.ws.server.endpoint.MessageEndpoint
- Direct Known Subclasses:
MarshallingWebServiceInboundGateway
,SimpleWebServiceInboundGateway
public abstract class AbstractWebServiceInboundGateway
extends org.springframework.integration.gateway.MessagingGatewaySupport
implements org.springframework.ws.server.endpoint.MessageEndpoint, org.springframework.integration.context.OrderlyShutdownCapable
- Since:
- 2.1
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.springframework.integration.gateway.MessagingGatewaySupport
messagingTemplate
Fields inherited from class org.springframework.integration.endpoint.AbstractEndpoint
lifecycleCondition, lifecycleLock
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
Constructors Constructor Description AbstractWebServiceInboundGateway()
-
Method Summary
Modifier and Type Method Description int
afterShutdown()
int
beforeShutdown()
protected abstract void
doInvoke(org.springframework.ws.context.MessageContext messageContext)
protected void
fromSoapHeaders(org.springframework.ws.context.MessageContext messageContext, org.springframework.integration.support.AbstractIntegrationMessageBuilder<?> builder)
java.lang.String
getComponentType()
protected SoapHeaderMapper
getHeaderMapper()
void
invoke(org.springframework.ws.context.MessageContext messageContext)
void
setHeaderMapper(SoapHeaderMapper headerMapper)
protected void
toSoapHeaders(org.springframework.ws.WebServiceMessage response, org.springframework.messaging.Message<?> replyMessage)
Methods inherited from class org.springframework.integration.gateway.MessagingGatewaySupport
buildErrorMessage, buildSendTimer, destroy, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getManagedName, getManagedType, getOverrides, getReplyChannel, getRequestChannel, isLoggingEnabled, onInit, receive, receive, receiveMessage, receiveMessage, registerMetricsCaptor, registerReplyMessageCorrelatorIfNecessary, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, sendTimer, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setErrorOnTimeout, setLoggingEnabled, setManagedName, setManagedType, setReplyChannel, setReplyChannelName, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestChannelName, setRequestMapper, setRequestTimeout, setShouldTrack
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
AbstractWebServiceInboundGateway
public AbstractWebServiceInboundGateway()
-
-
Method Details
-
getComponentType
public java.lang.String getComponentType()- Specified by:
getComponentType
in interfaceorg.springframework.integration.support.context.NamedComponent
- Overrides:
getComponentType
in classorg.springframework.integration.gateway.MessagingGatewaySupport
-
setHeaderMapper
-
getHeaderMapper
-
invoke
public void invoke(org.springframework.ws.context.MessageContext messageContext) throws java.lang.Exception- Specified by:
invoke
in interfaceorg.springframework.ws.server.endpoint.MessageEndpoint
- Throws:
java.lang.Exception
-
fromSoapHeaders
protected void fromSoapHeaders(org.springframework.ws.context.MessageContext messageContext, org.springframework.integration.support.AbstractIntegrationMessageBuilder<?> builder) -
toSoapHeaders
protected void toSoapHeaders(org.springframework.ws.WebServiceMessage response, org.springframework.messaging.Message<?> replyMessage) -
beforeShutdown
public int beforeShutdown()- Specified by:
beforeShutdown
in interfaceorg.springframework.integration.context.OrderlyShutdownCapable
-
afterShutdown
public int afterShutdown()- Specified by:
afterShutdown
in interfaceorg.springframework.integration.context.OrderlyShutdownCapable
-
doInvoke
protected abstract void doInvoke(org.springframework.ws.context.MessageContext messageContext) throws java.io.IOException- Throws:
java.io.IOException
-