org.apache.servicemix.camel
Class CamelProviderEndpoint

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.ProviderEndpoint
              extended by org.apache.servicemix.camel.CamelProviderEndpoint
All Implemented Interfaces:
ExchangeProcessor

public class CamelProviderEndpoint
extends ProviderEndpoint

A JBI endpoint which when invoked will delegate to a Camel endpoint

Version:
$Revision: 426415 $

Field Summary
static QName SERVICE_NAME
           
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
CamelProviderEndpoint(ServiceUnit serviceUnit, org.apache.camel.Endpoint camelEndpoint, JbiBinding binding, org.apache.camel.Processor camelProcessor)
           
CamelProviderEndpoint(ServiceUnit serviceUnit, QName service, String endpoint, JbiBinding binding, org.apache.camel.Processor camelProcessor)
           
 
Method Summary
protected  void handleActiveProviderExchange(MessageExchange exchange)
           
 void process(MessageExchange exchange)
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
getRole, processInOnly, processInOut, 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, validate
 
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

CamelProviderEndpoint

public CamelProviderEndpoint(ServiceUnit serviceUnit,
                             QName service,
                             String endpoint,
                             JbiBinding binding,
                             org.apache.camel.Processor camelProcessor)

CamelProviderEndpoint

public CamelProviderEndpoint(ServiceUnit serviceUnit,
                             org.apache.camel.Endpoint camelEndpoint,
                             JbiBinding binding,
                             org.apache.camel.Processor camelProcessor)
Method Detail

process

public void process(MessageExchange exchange)
             throws Exception
Specified by:
process in interface ExchangeProcessor
Overrides:
process in class ProviderEndpoint
Throws:
Exception

handleActiveProviderExchange

protected void handleActiveProviderExchange(MessageExchange exchange)
                                     throws Exception
Throws:
Exception


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