org.springframework.integration.ws
Class MarshallingWebServiceInboundGateway

java.lang.Object
  extended by org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
      extended by 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 org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
implements BeanNameAware, BeanFactoryAware, InitializingBean, SmartLifecycle, TrackableComponent

Since:
1.0.2

Field Summary
 
Fields inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
logger
 
Constructor Summary
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.
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.String getComponentName()
           
 java.lang.String getComponentType()
           
 int getPhase()
           
protected  java.lang.Object invokeInternal(java.lang.Object requestObject)
           
 boolean isAutoStartup()
           
 boolean isRunning()
           
 void setAutoStartup(boolean autoStartup)
           
 void setBeanFactory(BeanFactory beanFactory)
           
 void setBeanName(java.lang.String beanName)
           
 void setErrorChannel(MessageChannel errorChannel)
           
 void setPhase(int phase)
           
 void setReplyChannel(MessageChannel replyChannel)
           
 void setReplyTimeout(long replyTimeout)
           
 void setRequestChannel(MessageChannel requestChannel)
           
 void setRequestTimeout(long requestTimeout)
           
 void setShouldTrack(boolean shouldTrack)
           
 void setTaskScheduler(TaskScheduler taskScheduler)
           
 void start()
           
 void stop()
           
 void stop(java.lang.Runnable callback)
           
 
Methods inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
afterMarshallerSet, getMarshaller, getUnmarshaller, invoke, onMarshalResponse, onUnmarshalRequest, setMarshaller, setUnmarshaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

setRequestChannel

public void setRequestChannel(MessageChannel requestChannel)

setRequestTimeout

public void setRequestTimeout(long requestTimeout)

setErrorChannel

public void setErrorChannel(MessageChannel errorChannel)

setReplyChannel

public void setReplyChannel(MessageChannel replyChannel)

setReplyTimeout

public void setReplyTimeout(long replyTimeout)

setTaskScheduler

public void setTaskScheduler(TaskScheduler taskScheduler)

setShouldTrack

public void setShouldTrack(boolean shouldTrack)
Specified by:
setShouldTrack in interface TrackableComponent

getComponentName

public java.lang.String getComponentName()
Specified by:
getComponentName in interface NamedComponent

getComponentType

public java.lang.String getComponentType()
Specified by:
getComponentType in interface NamedComponent

setAutoStartup

public void setAutoStartup(boolean autoStartup)

isAutoStartup

public boolean isAutoStartup()
Specified by:
isAutoStartup in interface SmartLifecycle

setPhase

public void setPhase(int phase)

getPhase

public int getPhase()
Specified by:
getPhase in interface Phased

setBeanName

public void setBeanName(java.lang.String beanName)
Specified by:
setBeanName in interface BeanNameAware

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
Specified by:
setBeanFactory in interface BeanFactoryAware

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
Throws:
java.lang.Exception

invokeInternal

protected java.lang.Object invokeInternal(java.lang.Object requestObject)
                                   throws java.lang.Exception
Specified by:
invokeInternal in class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
Throws:
java.lang.Exception

isRunning

public boolean isRunning()
Specified by:
isRunning in interface Lifecycle

start

public void start()
Specified by:
start in interface Lifecycle

stop

public void stop()
Specified by:
stop in interface Lifecycle

stop

public void stop(java.lang.Runnable callback)
Specified by:
stop in interface SmartLifecycle