org.apache.servicemix.camel
Class CamelProviderEndpoint

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

public class CamelProviderEndpoint
extends ProviderEndpoint
implements org.apache.camel.spi.Synchronization

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

Version:
$Revision: 426415 $

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
CamelProviderEndpoint(ServiceUnit serviceUnit, org.apache.camel.Endpoint camelEndpoint, JbiBinding binding, org.apache.camel.AsyncProcessor camelProcessor)
           
CamelProviderEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint, JbiBinding binding, org.apache.camel.AsyncProcessor camelProcessor)
           
 
Method Summary
protected  void handleActiveProviderExchange(javax.jbi.messaging.MessageExchange exchange)
           
 void onComplete(org.apache.camel.Exchange exchange)
           
 void onFailure(org.apache.camel.Exchange exchange)
           
 void process(javax.jbi.messaging.MessageExchange exchange)
           
 void setCamelEndpoint(org.apache.camel.Endpoint camelEndpoint)
          Set the Camel JbiEndpoint instance that corresponds with this JBI endpoint
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
activate, deactivate, getRole, processInOnly, processInOut
 
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, 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 javax.xml.namespace.QName SERVICE_NAME
Constructor Detail

CamelProviderEndpoint

public CamelProviderEndpoint(ServiceUnit serviceUnit,
                             javax.xml.namespace.QName service,
                             java.lang.String endpoint,
                             JbiBinding binding,
                             org.apache.camel.AsyncProcessor camelProcessor)

CamelProviderEndpoint

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

setCamelEndpoint

public void setCamelEndpoint(org.apache.camel.Endpoint camelEndpoint)
Set the Camel JbiEndpoint instance that corresponds with this JBI endpoint

Parameters:
camelEndpoint - the Camel JbiEndpoint instance

process

public void process(javax.jbi.messaging.MessageExchange exchange)
             throws java.lang.Exception
Specified by:
process in interface Endpoint
Overrides:
process in class ProviderEndpoint
Throws:
java.lang.Exception

handleActiveProviderExchange

protected void handleActiveProviderExchange(javax.jbi.messaging.MessageExchange exchange)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

onComplete

public void onComplete(org.apache.camel.Exchange exchange)
Specified by:
onComplete in interface org.apache.camel.spi.Synchronization

onFailure

public void onFailure(org.apache.camel.Exchange exchange)
Specified by:
onFailure in interface org.apache.camel.spi.Synchronization


Copyright © 2005-2012 FuseSource. All Rights Reserved.