public class MarshallingWebServiceInboundGateway extends AbstractWebServiceInboundGateway
headerMapper
logger
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) |
fromSoapHeaders, getComponentType, invoke, setHeaderMapper, toSoapHeaders
doStart, doStop, receive, send, sendAndReceive, sendAndReceiveMessage, setErrorChannel, setReplyChannel, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestMapper, setRequestTimeout, setShouldTrack
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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() throws Exception
IntegrationObjectSupport
onInit
in class MessagingGatewaySupport
Exception
- Any exception.protected void doInvoke(MessageContext messageContext) throws Exception
doInvoke
in class AbstractWebServiceInboundGateway
Exception