public abstract class ProviderEndpoint extends SimpleEndpoint
loggerdefinition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
ProviderEndpoint() |
ProviderEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint) |
ProviderEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
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) |
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start, stopgetDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validatepublic ProviderEndpoint()
public ProviderEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint)
public ProviderEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
public javax.jbi.messaging.MessageExchange.Role getRole()
AbstractEndpointGet the endpoint role.
getRole in interface EndpointgetRole in class AbstractEndpointpublic void activate()
throws java.lang.Exception
Endpointactivate in interface Endpointactivate in class SimpleEndpointjava.lang.Exceptionpublic void deactivate()
throws java.lang.Exception
Endpointdeactivate in interface Endpointdeactivate in class SimpleEndpointjava.lang.Exceptionpublic 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.
process in interface Endpointprocess in class AbstractEndpointexchange - the message exchangejava.lang.Exceptionprotected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in)
throws java.lang.Exception
java.lang.Exceptionprotected void processInOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in,
javax.jbi.messaging.NormalizedMessage out)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005-2014 FuseSource. All Rights Reserved.