Class MarshallingWebServiceInboundGateway
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.gateway.MessagingGatewaySupport
org.springframework.integration.ws.inbound.AbstractWebServiceInboundGateway
org.springframework.integration.ws.inbound.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:
- 7.0
- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan
-
Nested Class Summary
Nested classes/interfaces inherited from class MessagingGatewaySupport
MessagingGatewaySupport.ConvertingMessagingTemplateNested classes/interfaces inherited from interface IntegrationManagement
IntegrationManagement.ManagementOverrides -
Field Summary
Fields inherited from class MessagingGatewaySupport
messagingTemplateFields inherited from class AbstractEndpoint
lifecycleLockFields inherited from class IntegrationObjectSupport
EXPRESSION_PARSER, loggerFields inherited from interface IntegrationManagement
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newMarshallingWebServiceInboundGateway.MarshallingWebServiceInboundGateway(Marshaller marshaller) Create a newMarshallingWebServiceInboundGatewaywith the given marshaller.MarshallingWebServiceInboundGateway(Marshaller marshaller, Unmarshaller unmarshaller) Create a newMarshallingWebServiceInboundGatewaywith the given marshaller and unmarshaller. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInvoke(MessageContext messageContext) protected voidonInit()Subclasses may implement this for initialization logic.voidsetMarshaller(Marshaller marshaller) voidsetUnmarshaller(Unmarshaller unmarshaller) Methods inherited from class AbstractWebServiceInboundGateway
afterShutdown, beforeShutdown, fromSoapHeaders, getComponentType, getHeaderMapper, invoke, setHeaderMapper, toSoapHeadersMethods inherited from class MessagingGatewaySupport
buildErrorMessage, buildSendTimer, destroy, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getManagedName, getManagedType, getOverrides, getReplyChannel, getRequestChannel, getRequestChannelName, 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, setShouldTrackMethods inherited from class AbstractEndpoint
doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopMethods inherited from class 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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IntegrationManagement
getThisAsMethods inherited from interface NamedComponent
getBeanName, getComponentNameMethods inherited from interface SmartLifecycle
isPauseable
-
Constructor Details
-
MarshallingWebServiceInboundGateway
public MarshallingWebServiceInboundGateway()Create a newMarshallingWebServiceInboundGateway. TheMarshallerandUnmarshallermust be injected using properties. -
MarshallingWebServiceInboundGateway
Create a newMarshallingWebServiceInboundGatewaywith the given marshaller. The Marshaller must also implementUnmarshaller, since it is used for both marshalling and unmarshalling.Note that all
Marshallerimplementations in Spring-OXM also implement theUnmarshallerinterface, so you can safely use this constructor for any of those implementations.- Parameters:
marshaller- object used as marshaller and unmarshaller- Throws:
IllegalArgumentException- whenmarshallerdoes not implementUnmarshaller- See Also:
-
MarshallingWebServiceInboundGateway
Create a newMarshallingWebServiceInboundGatewaywith the given marshaller and unmarshaller.- Parameters:
marshaller- The marshaller.unmarshaller- The unmarshaller.
-
-
Method Details
-
setMarshaller
-
setUnmarshaller
-
onInit
protected void onInit()Description copied from class:IntegrationObjectSupportSubclasses may implement this for initialization logic.- Overrides:
onInitin classMessagingGatewaySupport
-
doInvoke
- Specified by:
doInvokein classAbstractWebServiceInboundGateway- Throws:
IOException
-