org.apache.servicemix.camel
Class CamelConsumerEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.Endpoint
      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, ExchangeProcessor

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 QName SERVICE_NAME
           
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
CamelConsumerEndpoint(JbiBinding binding, JbiEndpoint jbiEndpoint)
           
 
Method Summary
 String getLocationURI()
           
 void process(org.apache.camel.Exchange exchange)
           
 boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback asyncCallback)
           
 void process(MessageExchange messageExchange)
           
 void validate()
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint
configureExchangeTarget, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri, start, stop
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
activate, deactivate, done, fail, getChannel, getContext, getExchangeFactory, getProcessor, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.Endpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, 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 QName SERVICE_NAME
Constructor Detail

CamelConsumerEndpoint

public CamelConsumerEndpoint(JbiBinding binding,
                             JbiEndpoint jbiEndpoint)
Method Detail

process

public void process(MessageExchange messageExchange)
             throws Exception
Specified by:
process in interface ExchangeProcessor
Throws:
Exception

process

public boolean process(org.apache.camel.Exchange exchange,
                       org.apache.camel.AsyncCallback asyncCallback)
Specified by:
process in interface org.apache.camel.AsyncProcessor

process

public void process(org.apache.camel.Exchange exchange)
             throws Exception
Specified by:
process in interface org.apache.camel.Processor
Throws:
Exception

getLocationURI

public String getLocationURI()
Specified by:
getLocationURI in class ConsumerEndpoint

validate

public void validate()
              throws DeploymentException
Overrides:
validate in class ConsumerEndpoint
Throws:
DeploymentException


Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.