org.apache.servicemix.common.endpoints
Class SimpleEndpoint

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

public abstract class SimpleEndpoint
extends AbstractEndpoint


Field Summary
protected static org.slf4j.Logger logger
           
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, service, serviceUnit
 
Constructor Summary
SimpleEndpoint()
           
SimpleEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
SimpleEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint)
           
 
Method Summary
 void activate()
          Register this endpoint into the NMR and put the endpoint in a STOPPED state, where the endpoint is able to process incoming requests, but won't consume external requests such as JMS messages or HTTP requests.
 void deactivate()
          Unregister this endpoint from the NMR.
protected  void done(javax.jbi.messaging.MessageExchange me)
           
protected  void fail(javax.jbi.messaging.MessageExchange me, java.lang.Exception error)
           
 javax.jbi.messaging.DeliveryChannel getChannel()
           
 javax.jbi.component.ComponentContext getContext()
           
 javax.jbi.messaging.MessageExchangeFactory getExchangeFactory()
           
protected  void send(javax.jbi.messaging.MessageExchange me)
           
protected  void sendSync(javax.jbi.messaging.MessageExchange me)
           
 void start()
          Start consumption of external requests.
 void stop()
          Stop consumption of external requests.
 
Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getRole, getService, getServiceUnit, isExchangeOkay, prepareExchange, process, 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

logger

protected static org.slf4j.Logger logger
Constructor Detail

SimpleEndpoint

public SimpleEndpoint()

SimpleEndpoint

public SimpleEndpoint(ServiceUnit serviceUnit,
                      javax.xml.namespace.QName service,
                      java.lang.String endpoint)

SimpleEndpoint

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

activate

public void activate()
              throws java.lang.Exception
Description copied from interface: Endpoint
Register this endpoint into the NMR and put the endpoint in a STOPPED state, where the endpoint is able to process incoming requests, but won't consume external requests such as JMS messages or HTTP requests.

Specified by:
activate in interface Endpoint
Specified by:
activate in class AbstractEndpoint
Throws:
java.lang.Exception

deactivate

public void deactivate()
                throws java.lang.Exception
Description copied from interface: Endpoint
Unregister this endpoint from the NMR.

Specified by:
deactivate in interface Endpoint
Specified by:
deactivate in class AbstractEndpoint
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Description copied from interface: Endpoint
Start consumption of external requests.

Specified by:
start in interface Endpoint
Specified by:
start in class AbstractEndpoint
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Description copied from interface: Endpoint
Stop consumption of external requests.

Specified by:
stop in interface Endpoint
Specified by:
stop in class AbstractEndpoint
Throws:
java.lang.Exception

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,
                    java.lang.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-2012 FuseSource. All Rights Reserved.