org.apache.servicemix.common
Interface Endpoint

All Known Implementing Classes:
AbstractEndpoint, ConsumerEndpoint, PollingEndpoint, ProviderEndpoint, SimpleEndpoint

public interface 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.
 Document getDescription()
           
 String getEndpoint()
           
 QName getInterfaceName()
           
 String getKey()
           
 javax.jbi.messaging.MessageExchange.Role getRole()
           
 QName getService()
           
 ServiceUnit getServiceUnit()
           
 boolean isExchangeOkay(javax.jbi.messaging.MessageExchange exchange)
           
 void process(javax.jbi.messaging.MessageExchange exchange)
          Process an incoming JBI exchange.
 void setServiceUnit(ServiceUnit serviceUnit)
           
 void start()
          Start consumption of external requests.
 void stop()
          Stop consumption of external requests.
 void validate()
          Validation is a step which is done at deployment time to check that the endpoint definition is valid and that there is no missing properties.
 

Method Detail

getKey

String getKey()

getInterfaceName

QName getInterfaceName()

getService

QName getService()

getEndpoint

String getEndpoint()

getDescription

Document getDescription()

getRole

javax.jbi.messaging.MessageExchange.Role getRole()

getServiceUnit

ServiceUnit getServiceUnit()

setServiceUnit

void setServiceUnit(ServiceUnit serviceUnit)

isExchangeOkay

boolean isExchangeOkay(javax.jbi.messaging.MessageExchange exchange)

activate

void activate()
              throws Exception
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.

Throws:
Exception

start

void start()
           throws Exception
Start consumption of external requests.

Throws:
Exception

stop

void stop()
          throws Exception
Stop consumption of external requests.

Throws:
Exception

deactivate

void deactivate()
                throws Exception
Unregister this endpoint from the NMR.

Throws:
Exception

process

void process(javax.jbi.messaging.MessageExchange exchange)
             throws Exception
Process an incoming JBI exchange.

Parameters:
exchange -
Throws:
Exception

validate

void validate()
              throws javax.jbi.management.DeploymentException
Validation is a step which is done at deployment time to check that the endpoint definition is valid and that there is no missing properties.

Throws:
javax.jbi.management.DeploymentException


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