org.apache.servicemix.camel
Class CamelConsumerEndpoint
java.lang.Object
org.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ConsumerEndpoint
org.apache.servicemix.camel.CamelConsumerEndpoint
- All Implemented Interfaces:
- org.apache.camel.AsyncProcessor, org.apache.camel.Processor, Endpoint
public class CamelConsumerEndpoint
- extends ConsumerEndpoint
- implements org.apache.camel.AsyncProcessor
A consumer endpoint that will be used to send JBI exchanges
originating from camel.
|
Method Summary |
protected java.util.Map<java.lang.String,org.apache.servicemix.camel.CamelConsumerEndpoint.ContinuationData> |
getContinuationData()
Provides read-only access to the underlying map of continuation data |
protected JbiEndpoint |
getJbiEndpoint()
Access the underlying Camel Endpoint |
void |
process(org.apache.camel.Exchange exchange)
Process the Camel Exchange by sending/receiving a JBI MessageExchange synchronously |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback asyncCallback)
Process the Camel Exchange by sending a JBI MessageExchange asynchronously, where the response
will be handled by the process(javax.jbi.messaging.MessageExchange) method |
void |
process(javax.jbi.messaging.MessageExchange messageExchange)
Process the JBI MessageExchange that is being delivered asynchronously as a response to what was sent by
the process(Exchange, AsyncCallback) method |
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint |
activate, configureExchangeTarget, deactivate, getLocationURI, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SERVICE_NAME
public static final javax.xml.namespace.QName SERVICE_NAME
CamelConsumerEndpoint
public CamelConsumerEndpoint(JbiBinding binding,
JbiEndpoint jbiEndpoint)
process
public void process(javax.jbi.messaging.MessageExchange messageExchange)
throws java.lang.Exception
- Process the JBI MessageExchange that is being delivered asynchronously as a response to what was sent by
the
process(Exchange, AsyncCallback) method
- Specified by:
process in interface Endpoint- Specified by:
process in class AbstractEndpoint
- Throws:
java.lang.Exception
process
public void process(org.apache.camel.Exchange exchange)
throws java.lang.Exception
- Process the Camel Exchange by sending/receiving a JBI MessageExchange synchronously
- Specified by:
process in interface org.apache.camel.Processor
- Throws:
java.lang.Exception
process
public boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback asyncCallback)
- Process the Camel Exchange by sending a JBI MessageExchange asynchronously, where the response
will be handled by the
process(javax.jbi.messaging.MessageExchange) method
- Specified by:
process in interface org.apache.camel.AsyncProcessor
validate
public void validate()
throws javax.jbi.management.DeploymentException
- Specified by:
validate in interface Endpoint- Overrides:
validate in class ConsumerEndpoint
- Throws:
javax.jbi.management.DeploymentException
getContinuationData
protected java.util.Map<java.lang.String,org.apache.servicemix.camel.CamelConsumerEndpoint.ContinuationData> getContinuationData()
- Provides read-only access to the underlying map of continuation data
getJbiEndpoint
protected JbiEndpoint getJbiEndpoint()
- Access the underlying Camel
Endpoint
Copyright © 2005-2012 FuseSource. All Rights Reserved.