org.apache.servicemix.common.endpoints
Class ProviderEndpoint
java.lang.Object
org.apache.servicemix.common.Endpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
- All Implemented Interfaces:
- ExchangeProcessor
public abstract class ProviderEndpoint
- extends SimpleEndpoint
| Methods inherited from class org.apache.servicemix.common.Endpoint |
getDefinition, getDescription, getEndpoint, getInterfaceName, getService, getServiceUnit, isExchangeOkay, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validate |
ProviderEndpoint
public ProviderEndpoint()
ProviderEndpoint
public ProviderEndpoint(ServiceUnit serviceUnit,
QName service,
String endpoint)
ProviderEndpoint
public ProviderEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
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.