org.apache.servicemix.camel
Class CamelConsumerEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ConsumerEndpoint
              extended by 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.


Field Summary
static javax.xml.namespace.QName SERVICE_NAME
           
 
Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
logger
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, service, serviceUnit
 
Constructor Summary
CamelConsumerEndpoint(JbiBinding binding, JbiEndpoint jbiEndpoint)
           
 
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.SimpleEndpoint
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start, stop
 
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
 

Field Detail

SERVICE_NAME

public static final javax.xml.namespace.QName SERVICE_NAME
Constructor Detail

CamelConsumerEndpoint

public CamelConsumerEndpoint(JbiBinding binding,
                             JbiEndpoint jbiEndpoint)
Method Detail

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.