org.springframework.integration.ws
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.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, NamedComponent, TrackableComponent, org.springframework.ws.server.endpoint.MessageEndpoint
public class MarshallingWebServiceInboundGateway
- extends AbstractWebServiceInboundGateway
- Since:
- 1.0.2
- Author:
- Mark Fisher, Oleg Zhurakousky
Method Summary |
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)
|
Methods inherited from class org.springframework.integration.gateway.MessagingGatewaySupport |
doStart, doStop, receive, send, sendAndReceive, sendAndReceiveMessage, setErrorChannel, setReplyChannel, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestMapper, setRequestTimeout, setShouldTrack |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MarshallingWebServiceInboundGateway
public MarshallingWebServiceInboundGateway()
- Creates a new
MarshallingWebServiceInboundGateway
.
The Marshaller
and Unmarshaller
must be injected using properties.
MarshallingWebServiceInboundGateway
public MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller)
- Creates a new
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.
- Parameters:
marshaller
- object used as marshaller and unmarshaller
- Throws:
java.lang.IllegalArgumentException
- when marshaller
does not implement Unmarshaller
- See Also:
MarshallingWebServiceInboundGateway(Marshaller, Unmarshaller)
MarshallingWebServiceInboundGateway
public MarshallingWebServiceInboundGateway(org.springframework.oxm.Marshaller marshaller,
org.springframework.oxm.Unmarshaller unmarshaller)
- Creates a new
MarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller.
setMarshaller
public void setMarshaller(org.springframework.oxm.Marshaller marshaller)
setUnmarshaller
public void setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
onInit
protected void onInit()
throws java.lang.Exception
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit
in class MessagingGatewaySupport
- Throws:
java.lang.Exception
doInvoke
protected void doInvoke(org.springframework.ws.context.MessageContext messageContext)
throws java.lang.Exception
- Specified by:
doInvoke
in class AbstractWebServiceInboundGateway
- Throws:
java.lang.Exception