Class CamelTargetAdapter
- java.lang.Object
-
- org.apache.camel.component.spring.integration.adapter.AbstractCamelAdapter
-
- org.apache.camel.component.spring.integration.adapter.CamelTargetAdapter
-
- All Implemented Interfaces:
org.springframework.messaging.MessageHandler
public class CamelTargetAdapter extends AbstractCamelAdapter implements org.springframework.messaging.MessageHandler
CamelTargetAdapter will redirect the Spring Integration message to the Camel context. When we inject the camel context into it, we need also specify the Camel endpoint url we will route the Spring Integration message to the Camel context
-
-
Constructor Summary
Constructors Constructor Description CamelTargetAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ProducerTemplate
getCamelTemplate()
org.springframework.messaging.MessageChannel
getReplyChannel()
void
handleMessage(org.springframework.messaging.Message<?> message)
boolean
send(org.springframework.messaging.Message<?> message)
void
setReplyChannel(org.springframework.messaging.MessageChannel channel)
-
Methods inherited from class org.apache.camel.component.spring.integration.adapter.AbstractCamelAdapter
getCamelContext, getCamelEndpointUri, isExpectReply, setCamelContext, setCamelEndpointUri, setExpectReply
-
-
-
-
Method Detail
-
setReplyChannel
public void setReplyChannel(org.springframework.messaging.MessageChannel channel)
-
getReplyChannel
public org.springframework.messaging.MessageChannel getReplyChannel()
-
getCamelTemplate
public org.apache.camel.ProducerTemplate getCamelTemplate()
-
send
public boolean send(org.springframework.messaging.Message<?> message) throws Exception
- Throws:
Exception
-
handleMessage
public void handleMessage(org.springframework.messaging.Message<?> message) throws org.springframework.messaging.MessageDeliveryException
- Specified by:
handleMessage
in interfaceorg.springframework.messaging.MessageHandler
- Throws:
org.springframework.messaging.MessageDeliveryException
-
-