Spring Integration

org.springframework.integration.ws
Class MarshallingWebServiceInboundGateway

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.endpoint.AbstractEndpoint
          extended by org.springframework.integration.gateway.MessagingGatewaySupport
              extended by org.springframework.integration.ws.AbstractWebServiceInboundGateway
                  extended by 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

Field Summary
 
Fields inherited from class org.springframework.integration.ws.AbstractWebServiceInboundGateway
headerMapper
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
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.
 
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.ws.AbstractWebServiceInboundGateway
fromSoapHeaders, getComponentType, invoke, setHeaderMapper, toSoapHeaders
 
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 org.springframework.integration.endpoint.AbstractEndpoint
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName
 

Constructor Detail

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.

Method Detail

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

Spring Integration