org.apache.servicemix.common.endpoints
Class ProviderEndpoint

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
All Implemented Interfaces:
ExchangeProcessor

public abstract class ProviderEndpoint
extends SimpleEndpoint


Field Summary
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
ProviderEndpoint()
           
ProviderEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
ProviderEndpoint(ServiceUnit serviceUnit, QName service, String endpoint)
           
 
Method Summary
 javax.jbi.messaging.MessageExchange.Role getRole()
           
 void process(javax.jbi.messaging.MessageExchange exchange)
          A default implementation of the message processor which checks the status of the exchange and if its valid will dispatch to either processInOnly(MessageExchange,NormalizedMessage) for an InOnly or RobustInOnly message exchange otherwise the processInOut(MessageExchange,NormalizedMessage,NormalizedMessage) method will be invoked
protected  void processInOnly(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in)
           
protected  void processInOut(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in, javax.jbi.messaging.NormalizedMessage out)
           
 void start()
           
 void 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, 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
 

Constructor Detail

ProviderEndpoint

public ProviderEndpoint()

ProviderEndpoint

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

ProviderEndpoint

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

getRole

public javax.jbi.messaging.MessageExchange.Role getRole()
Specified by:
getRole in class Endpoint
Returns:
Returns the role.

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

process

public void process(javax.jbi.messaging.MessageExchange exchange)
             throws Exception
A default implementation of the message processor which checks the status of the exchange and if its valid will dispatch to either processInOnly(MessageExchange,NormalizedMessage) for an InOnly or RobustInOnly message exchange otherwise the processInOut(MessageExchange,NormalizedMessage,NormalizedMessage) method will be invoked

Parameters:
exchange - the message exchange
Throws:
Exception

processInOnly

protected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
                             javax.jbi.messaging.NormalizedMessage in)
                      throws Exception
Throws:
Exception

processInOut

protected void processInOut(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.messaging.NormalizedMessage in,
                            javax.jbi.messaging.NormalizedMessage out)
                     throws Exception
Throws:
Exception


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