public class MarshallingWebServiceInboundGateway extends AbstractWebServiceInboundGateway
IntegrationManagement.ManagementOverrides
messagingTemplate
lifecycleCondition, lifecycleLock
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
DEFAULT_PHASE
Constructor and Description |
---|
MarshallingWebServiceInboundGateway()
Creates a new
MarshallingWebServiceInboundGateway . |
MarshallingWebServiceInboundGateway(Marshaller marshaller)
Creates a new
MarshallingWebServiceInboundGateway with the given marshaller. |
MarshallingWebServiceInboundGateway(Marshaller marshaller,
Unmarshaller unmarshaller)
Creates a new
MarshallingWebServiceInboundGateway with the given marshaller and unmarshaller. |
Modifier and Type | Method and Description |
---|---|
protected void |
doInvoke(MessageContext messageContext) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setMarshaller(Marshaller marshaller) |
void |
setUnmarshaller(Unmarshaller unmarshaller) |
afterShutdown, beforeShutdown, fromSoapHeaders, getComponentType, getHeaderMapper, invoke, setHeaderMapper, toSoapHeaders
buildErrorMessage, buildSendTimer, destroy, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getManagedName, getManagedType, getOverrides, getReplyChannel, getRequestChannel, isLoggingEnabled, 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
doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public MarshallingWebServiceInboundGateway()
MarshallingWebServiceInboundGateway
.
The Marshaller
and Unmarshaller
must be injected using properties.public MarshallingWebServiceInboundGateway(Marshaller marshaller)
MarshallingWebServiceInboundGateway
with the given marshaller.
The Marshaller must also implement Unmarshaller
, since it is used for both marshalling and
unmarshalling.
Note that all Marshaller
implementations in Spring-OXM also implement the Unmarshaller
interface, so you can safely use this constructor for any of those implementations.
marshaller
- object used as marshaller and unmarshallerIllegalArgumentException
- when marshaller
does not implement Unmarshaller
MarshallingWebServiceInboundGateway(Marshaller, Unmarshaller)
public MarshallingWebServiceInboundGateway(Marshaller marshaller, Unmarshaller unmarshaller)
MarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller.marshaller
- The marshaller.unmarshaller
- The unmarshaller.public void setMarshaller(Marshaller marshaller)
public void setUnmarshaller(Unmarshaller unmarshaller)
protected void onInit()
IntegrationObjectSupport
onInit
in class MessagingGatewaySupport
protected void doInvoke(MessageContext messageContext) throws IOException
doInvoke
in class AbstractWebServiceInboundGateway
IOException