public abstract class EIPEndpoint extends ProviderEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected LockManager |
lockManager
The lock manager.
|
protected org.apache.servicemix.store.Store |
store
The store to keep pending exchanges
|
protected org.apache.servicemix.store.StoreFactory |
storeFactory
The store factory.
|
protected org.apache.servicemix.timers.TimerManager |
timerManager
The timer manager.
|
protected ExchangeTarget |
wsdlExchangeTarget
The ExchangeTarget to use to get the WSDL
|
protected org.springframework.core.io.Resource |
wsdlResource
The resource pointing to the WSDL for this endpoint
|
loggerdefinition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
EIPEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.jbi.servicedesc.ServiceEndpoint |
chooseFirstEndpointWithDescriptor(javax.jbi.servicedesc.ServiceEndpoint[] endpoints) |
protected void |
copyAttachments(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
Copies attachments from one message to another that do not already exist
|
protected void |
copyProperties(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
Copies properties from one message to another that do not already exist
|
javax.wsdl.Definition |
getDefinition()
If the definition is not currently set, it tries to set it using
the following sources in the order:
description, wsdlResource, wsdlExchangeTarget
|
protected javax.wsdl.Definition |
getDefinitionFromDescription() |
protected javax.wsdl.Definition |
getDefinitionFromWsdlExchangeTarget() |
protected javax.wsdl.Definition |
getDefinitionFromWsdlResource() |
org.w3c.dom.Document |
getDescription() |
protected org.w3c.dom.Document |
getDescriptionForExchangeTarget(ExchangeTarget match) |
protected javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpointsForExchangeTarget(ExchangeTarget match) |
LockManager |
getLockManager()
The lock manager to use for this endpoint.
|
org.apache.servicemix.store.Store |
getStore() |
org.apache.servicemix.store.StoreFactory |
getStoreFactory() |
org.apache.servicemix.timers.TimerManager |
getTimerManager() |
ExchangeTarget |
getWsdlExchangeTarget() |
org.springframework.core.io.Resource |
getWsdlResource() |
void |
process(javax.jbi.messaging.MessageExchange exchange) |
protected abstract void |
processAsync(javax.jbi.messaging.MessageExchange exchange) |
protected abstract void |
processSync(javax.jbi.messaging.MessageExchange exchange) |
void |
setLockManager(LockManager lockManager) |
void |
setStore(org.apache.servicemix.store.Store store)
Configure the store to use.
|
void |
setStoreFactory(org.apache.servicemix.store.StoreFactory storeFactory)
The store factory to use when creating a store.
|
void |
setTimerManager(org.apache.servicemix.timers.TimerManager timerManager)
The timer manager to use for this endpoint.
|
void |
setWsdlExchangeTarget(ExchangeTarget wsdlExchangeTarget)
An exchange target pointing to a JBI endpoint that
will be used to load the WSDL describing this endpoint.
|
void |
setWsdlResource(org.springframework.core.io.Resource wsdlResource)
When specified, this spring resource will be used to load the
WSDL that will be exposed as a description for this endpoint.
|
void |
start() |
void |
stop() |
activate, deactivate, getRole, processInOnly, processInOutdone, fail, getChannel, getContext, getExchangeFactory, send, sendSyncgetEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validateprotected org.springframework.core.io.Resource wsdlResource
protected org.apache.servicemix.store.Store store
protected org.apache.servicemix.store.StoreFactory storeFactory
protected LockManager lockManager
protected org.apache.servicemix.timers.TimerManager timerManager
protected ExchangeTarget wsdlExchangeTarget
public org.apache.servicemix.store.Store getStore()
public void setStore(org.apache.servicemix.store.Store store)
store - The store to set.public org.apache.servicemix.store.StoreFactory getStoreFactory()
public void setStoreFactory(org.apache.servicemix.store.StoreFactory storeFactory)
storeFactory - The storeFactory to set.public LockManager getLockManager()
public void setLockManager(LockManager lockManager)
lockManager - the lockManager to setpublic org.apache.servicemix.timers.TimerManager getTimerManager()
public void setTimerManager(org.apache.servicemix.timers.TimerManager timerManager)
timerManager - the timerManager to setpublic void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
stop in interface Endpointstop in class SimpleEndpointjava.lang.Exceptionpublic void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class ProviderEndpointjava.lang.Exceptionpublic org.w3c.dom.Document getDescription()
getDescription in interface EndpointgetDescription in class AbstractEndpointpublic javax.wsdl.Definition getDefinition()
getDefinition in class AbstractEndpointprotected javax.wsdl.Definition getDefinitionFromDescription()
protected javax.wsdl.Definition getDefinitionFromWsdlResource()
protected javax.wsdl.Definition getDefinitionFromWsdlExchangeTarget()
public org.springframework.core.io.Resource getWsdlResource()
public void setWsdlResource(org.springframework.core.io.Resource wsdlResource)
wsdlResource - protected org.w3c.dom.Document getDescriptionForExchangeTarget(ExchangeTarget match) throws javax.jbi.JBIException
javax.jbi.JBIExceptionprotected javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForExchangeTarget(ExchangeTarget match) throws javax.jbi.JBIException
match - javax.jbi.JBIExceptionprotected javax.jbi.servicedesc.ServiceEndpoint chooseFirstEndpointWithDescriptor(javax.jbi.servicedesc.ServiceEndpoint[] endpoints)
throws javax.jbi.JBIException
javax.jbi.JBIExceptionprotected abstract void processAsync(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void processSync(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
java.lang.Exceptionpublic ExchangeTarget getWsdlExchangeTarget()
public void setWsdlExchangeTarget(ExchangeTarget wsdlExchangeTarget)
protected void copyProperties(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
from - the message containing the propertiesto - the destination message where the properties are setprotected void copyAttachments(javax.jbi.messaging.NormalizedMessage from,
javax.jbi.messaging.NormalizedMessage to)
throws javax.jbi.messaging.MessagingException
from - the message with the attachmentsto - the destination message where the attachments are to be addedjavax.jbi.messaging.MessagingException - if an attachment could not be addedCopyright © 2005-2015 FuseSource. All Rights Reserved.