org.apache.servicemix.common.endpoints
Class ProviderEndpoint
java.lang.Object
org.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
- All Implemented Interfaces:
- Endpoint
public abstract class ProviderEndpoint
- extends SimpleEndpoint
|
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. |
javax.jbi.messaging.MessageExchange.Role |
getRole()
Get the endpoint role. |
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)
|
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, 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 |
ProviderEndpoint
public ProviderEndpoint()
ProviderEndpoint
public ProviderEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint)
ProviderEndpoint
public ProviderEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
getRole
public javax.jbi.messaging.MessageExchange.Role getRole()
- Description copied from class:
AbstractEndpoint
Get the endpoint role.
- Specified by:
getRole in interface Endpoint- Specified by:
getRole in class AbstractEndpoint
- Returns:
- Returns the role.
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- Overrides:
activate in class SimpleEndpoint
- 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- Overrides:
deactivate in class SimpleEndpoint
- Throws:
java.lang.Exception
process
public void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.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.
- Specified by:
process in interface Endpoint- Specified by:
process in class AbstractEndpoint
- Parameters:
exchange - the message exchange
- Throws:
java.lang.Exception
processInOnly
protected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in)
throws java.lang.Exception
- Throws:
java.lang.Exception
processInOut
protected void processInOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in,
javax.jbi.messaging.NormalizedMessage out)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005-2012 FuseSource. All Rights Reserved.