org.apache.servicemix.common.endpoints
Class SimpleEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.Endpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
All Implemented Interfaces:
ExchangeProcessor
Direct Known Subclasses:
ConsumerEndpoint, ProviderEndpoint

public abstract class SimpleEndpoint
extends Endpoint
implements ExchangeProcessor


Field Summary
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
SimpleEndpoint()
           
SimpleEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
SimpleEndpoint(ServiceUnit serviceUnit, QName service, String endpoint)
           
 
Method Summary
 void activate()
           
 void deactivate()
           
protected  void done(javax.jbi.messaging.MessageExchange me)
           
protected  void fail(javax.jbi.messaging.MessageExchange me, Exception error)
           
 javax.jbi.messaging.DeliveryChannel getChannel()
           
 javax.jbi.component.ComponentContext getContext()
           
 javax.jbi.messaging.MessageExchangeFactory getExchangeFactory()
           
 ExchangeProcessor getProcessor()
           
protected  void send(javax.jbi.messaging.MessageExchange me)
           
protected  void sendSync(javax.jbi.messaging.MessageExchange me)
           
 
Methods inherited from class org.apache.servicemix.common.Endpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getRole, 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
 
Methods inherited from interface org.apache.servicemix.common.ExchangeProcessor
process, start, stop
 

Constructor Detail

SimpleEndpoint

public SimpleEndpoint()

SimpleEndpoint

public SimpleEndpoint(ServiceUnit serviceUnit,
                      QName service,
                      String endpoint)

SimpleEndpoint

public SimpleEndpoint(DefaultComponent component,
                      javax.jbi.servicedesc.ServiceEndpoint endpoint)
Method Detail

activate

public void activate()
              throws Exception
Specified by:
activate in class Endpoint
Throws:
Exception

deactivate

public void deactivate()
                throws Exception
Specified by:
deactivate in class Endpoint
Throws:
Exception

getProcessor

public ExchangeProcessor getProcessor()
Specified by:
getProcessor in class Endpoint

send

protected void send(javax.jbi.messaging.MessageExchange me)
             throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

sendSync

protected void sendSync(javax.jbi.messaging.MessageExchange me)
                 throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

done

protected void done(javax.jbi.messaging.MessageExchange me)
             throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

fail

protected void fail(javax.jbi.messaging.MessageExchange me,
                    Exception error)
             throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

getExchangeFactory

public javax.jbi.messaging.MessageExchangeFactory getExchangeFactory()
Returns:
the exchangeFactory

getChannel

public javax.jbi.messaging.DeliveryChannel getChannel()
Returns:
the channel

getContext

public javax.jbi.component.ComponentContext getContext()
Returns:
the context


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