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:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent, TrackableComponent, org.springframework.ws.server.endpoint.MessageEndpoint
public class MarshallingWebServiceInboundGateway
- extends AbstractWebServiceInboundGateway
- Since:
- 1.0.2
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(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(Marshaller marshaller,
Unmarshaller unmarshaller)
- Creates a new
MarshallingWebServiceInboundGateway
with the given marshaller and unmarshaller.
setMarshaller
public void setMarshaller(Marshaller marshaller)
setUnmarshaller
public void setUnmarshaller(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