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:
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
- Since:
- 1.0.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.integration.gateway.MessagingGatewaySupport
org.springframework.integration.gateway.MessagingGatewaySupport.ConvertingMessagingTemplate
Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement
org.springframework.integration.support.management.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
ConstructorsConstructorDescriptionCreates a newMarshallingWebServiceInboundGateway
.MarshallingWebServiceInboundGateway
(org.springframework.oxm.Marshaller marshaller) Creates a newMarshallingWebServiceInboundGateway
with the given marshaller.MarshallingWebServiceInboundGateway
(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) Creates a newMarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doInvoke
(org.springframework.ws.context.MessageContext messageContext) protected void
onInit()
void
setMarshaller
(org.springframework.oxm.Marshaller marshaller) void
setUnmarshaller
(org.springframework.oxm.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, receive, receive, receiveMessage, receiveMessage, registerMetricsCaptor, registerObservationRegistry, registerReplyMessageCorrelatorIfNecessary, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, sendTimer, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setErrorOnTimeout, setLoggingEnabled, setManagedName, setManagedType, setObservationConvention, 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
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
public MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller) 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
public MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) Creates a newMarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller.- Parameters:
marshaller
- The marshaller.unmarshaller
- The unmarshaller.
-
-
Method Details
-
setMarshaller
public void setMarshaller(org.springframework.oxm.Marshaller marshaller) -
setUnmarshaller
public void setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller) -
onInit
protected void onInit()- Overrides:
onInit
in classorg.springframework.integration.gateway.MessagingGatewaySupport
-
doInvoke
protected void doInvoke(org.springframework.ws.context.MessageContext messageContext) throws IOException - Specified by:
doInvoke
in classAbstractWebServiceInboundGateway
- Throws:
IOException
-