public class MarshallingWebServiceInboundGateway extends AbstractWebServiceInboundGateway
IntegrationManagement.ManagementOverrides
headerMapper
messagingTemplate
lifecycleCondition, lifecycleLock
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
MarshallingWebServiceInboundGateway()
Creates a new
MarshallingWebServiceInboundGateway . |
MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller)
Creates a new
MarshallingWebServiceInboundGateway with the given marshaller. |
MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller,
org.springframework.oxm.Unmarshaller unmarshaller)
Creates a new
MarshallingWebServiceInboundGateway with the given marshaller and unmarshaller. |
Modifier and Type | Method and Description |
---|---|
protected void |
doInvoke(org.springframework.ws.context.MessageContext messageContext) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setMarshaller(org.springframework.oxm.Marshaller marshaller) |
void |
setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller) |
afterShutdown, beforeShutdown, fromSoapHeaders, getComponentType, invoke, setHeaderMapper, toSoapHeaders
buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getManagedName, getManagedType, getMessageCount, getMessageCountLong, getOverrides, getReplyChannel, getRequestChannel, isCountsEnabled, isLoggingEnabled, receive, receive, receiveMessage, receiveMessage, registerReplyMessageCorrelatorIfNecessary, reset, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, setCountsEnabled, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setLoggingEnabled, setManagedName, setManagedType, setReplyChannel, setReplyChannelName, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestChannelName, setRequestMapper, setRequestTimeout, setShouldTrack
destroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, setTaskScheduler, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
setCounter
registerMetricsCaptor
public MarshallingWebServiceInboundGateway()
MarshallingWebServiceInboundGateway
.
The Marshaller
and Unmarshaller
must be injected using properties.public MarshallingWebServiceInboundGateway(org.springframework.oxm.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 unmarshallerjava.lang.IllegalArgumentException
- when marshaller
does not implement Unmarshaller
MarshallingWebServiceInboundGateway(Marshaller, Unmarshaller)
public MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller)
MarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller.marshaller
- The marshaller.unmarshaller
- The unmarshaller.public void setMarshaller(org.springframework.oxm.Marshaller marshaller)
public void setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
protected void onInit() throws java.lang.Exception
IntegrationObjectSupport
onInit
in class MessagingGatewaySupport
java.lang.Exception
- Any exception.protected void doInvoke(org.springframework.ws.context.MessageContext messageContext) throws java.lang.Exception
doInvoke
in class AbstractWebServiceInboundGateway
java.lang.Exception