Class MarshallingWebServiceInboundGateway
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.gateway.MessagingGatewaySupport
org.springframework.integration.ws.AbstractWebServiceInboundGateway
org.springframework.integration.ws.MarshallingWebServiceInboundGateway
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,DisposableBean
,InitializingBean
,ApplicationContextAware
,Lifecycle
,Phased
,SmartLifecycle
,ComponentSourceAware
,ExpressionCapable
,OrderlyShutdownCapable
,IntegrationPattern
,NamedComponent
,IntegrationInboundManagement
,IntegrationManagement
,ManageableLifecycle
,ManageableSmartLifecycle
,TrackableComponent
,MessageEndpoint
- Since:
- 1.0.2
- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.integration.gateway.MessagingGatewaySupport
MessagingGatewaySupport.ConvertingMessagingTemplate
Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement
IntegrationManagement.ManagementOverrides
-
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
Fields inherited from interface org.springframework.integration.support.management.IntegrationManagement
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorDescriptionCreates a newMarshallingWebServiceInboundGateway
.MarshallingWebServiceInboundGateway
(Marshaller marshaller) Creates a newMarshallingWebServiceInboundGateway
with the given marshaller.MarshallingWebServiceInboundGateway
(Marshaller marshaller, Unmarshaller unmarshaller) Creates a newMarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doInvoke
(MessageContext messageContext) protected void
onInit()
Subclasses may implement this for initialization logic.void
setMarshaller
(Marshaller marshaller) void
setUnmarshaller
(Unmarshaller unmarshaller) Methods inherited from class org.springframework.integration.ws.AbstractWebServiceInboundGateway
afterShutdown, beforeShutdown, fromSoapHeaders, getComponentType, getHeaderMapper, invoke, setHeaderMapper, toSoapHeaders
Methods inherited from class org.springframework.integration.gateway.MessagingGatewaySupport
buildErrorMessage, buildSendTimer, destroy, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getManagedName, getManagedType, getOverrides, getReplyChannel, getRequestChannel, isLoggingEnabled, isObserved, receive, receive, receiveMessage, receiveMessage, registerMetricsCaptor, registerObservationRegistry, registerReplyMessageCorrelatorIfNecessary, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, sendTimer, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setErrorOnTimeout, setLoggingEnabled, setManagedName, setManagedType, setObservationConvention, setReceiverObservationConvention, 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, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.integration.support.management.IntegrationManagement
getThisAs
Methods inherited from interface org.springframework.integration.support.context.NamedComponent
getBeanName, getComponentName
-
Constructor Details
-
MarshallingWebServiceInboundGateway
public MarshallingWebServiceInboundGateway()Creates a newMarshallingWebServiceInboundGateway
. TheMarshaller
andUnmarshaller
must be injected using properties. -
MarshallingWebServiceInboundGateway
Creates a newMarshallingWebServiceInboundGateway
with the given marshaller. The Marshaller must also implementUnmarshaller
, since it is used for both marshalling and unmarshalling.Note that all
Marshaller
implementations in Spring-OXM also implement theUnmarshaller
interface, so you can safely use this constructor for any of those implementations.- Parameters:
marshaller
- object used as marshaller and unmarshaller- Throws:
IllegalArgumentException
- whenmarshaller
does not implementUnmarshaller
- See Also:
-
MarshallingWebServiceInboundGateway
Creates a newMarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller.- Parameters:
marshaller
- The marshaller.unmarshaller
- The unmarshaller.
-
-
Method Details
-
setMarshaller
-
setUnmarshaller
-
onInit
protected void onInit()Description copied from class:IntegrationObjectSupport
Subclasses may implement this for initialization logic.- Overrides:
onInit
in classMessagingGatewaySupport
-
doInvoke
- Specified by:
doInvoke
in classAbstractWebServiceInboundGateway
- Throws:
IOException
-