org.springframework.integration.ws
Class MarshallingWebServiceInboundGateway
java.lang.Object
org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
org.springframework.integration.ws.MarshallingWebServiceInboundGateway
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, org.springframework.ws.server.endpoint.MessageEndpoint
public class MarshallingWebServiceInboundGateway
- extends org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
- implements BeanNameAware, BeanFactoryAware, InitializingBean, Lifecycle
- Since:
- 1.0.2
- Author:
- Mark Fisher
Fields inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint |
logger |
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 |
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:
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.
setRequestChannel
public void setRequestChannel(MessageChannel requestChannel)
setRequestTimeout
public void setRequestTimeout(long requestTimeout)
setReplyChannel
public void setReplyChannel(MessageChannel replyChannel)
setReplyTimeout
public void setReplyTimeout(long replyTimeout)
setTaskScheduler
public void setTaskScheduler(TaskScheduler taskScheduler)
setAutoStartup
public void setAutoStartup(boolean autoStartup)
setBeanName
public void setBeanName(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 Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Overrides:
afterPropertiesSet
in class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
- Throws:
Exception
invokeInternal
protected Object invokeInternal(Object requestObject)
throws Exception
- Specified by:
invokeInternal
in class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
- Throws:
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
Copyright © 2010. All Rights Reserved.