public class CamelEndpointDispatcher extends Object implements org.springframework.ws.server.endpoint.MessageEndpoint
MessageEndpoint
for dispatching messages received by Spring-WS to a Camel
endpoint. This class needs to be registered in the Spring ApplicationContext
when consuming messages using the spring-ws:beanname: URI scheme.
For example, when using a route such as from("spring-ws:beanname:stockQuote").to("...");
the following bean definition needs to be present in the ApplicationContext:
<bean id="stockQuote" class="org.apache.camel.component.spring.ws.bean.CamelEndpointDispatcher" />
AbstractMapBasedEndpointMapping.setMappings(java.util.Properties)
,
AbstractMapBasedEndpointMapping.setEndpointMap(java.util.Map)
Constructor and Description |
---|
CamelEndpointDispatcher() |
Modifier and Type | Method and Description |
---|---|
org.springframework.ws.server.endpoint.MessageEndpoint |
getConsumerMessageEndpoint() |
void |
invoke(org.springframework.ws.context.MessageContext messageContext) |
void |
setConsumerMessageEndpoint(org.springframework.ws.server.endpoint.MessageEndpoint consumer) |
public void invoke(org.springframework.ws.context.MessageContext messageContext) throws Exception
invoke
in interface org.springframework.ws.server.endpoint.MessageEndpoint
Exception
public org.springframework.ws.server.endpoint.MessageEndpoint getConsumerMessageEndpoint()
public void setConsumerMessageEndpoint(org.springframework.ws.server.endpoint.MessageEndpoint consumer)
Apache Camel