|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
org.apache.servicemix.eip.EIPEndpoint
public abstract class EIPEndpoint
| Field Summary | |
|---|---|
protected org.apache.servicemix.common.locks.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 |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, logger, service, serviceUnit |
| Constructor Summary | |
|---|---|
EIPEndpoint()
|
|
| Method Summary | |
|---|---|
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()
|
Document |
getDescription()
|
protected Document |
getDescriptionForExchangeTarget(ExchangeTarget match)
|
protected javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpointsForExchangeTarget(ExchangeTarget match)
|
org.apache.servicemix.common.locks.LockManager |
getLockManager()
|
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(org.apache.servicemix.common.locks.LockManager lockManager)
|
void |
setStore(org.apache.servicemix.store.Store store)
|
void |
setStoreFactory(org.apache.servicemix.store.StoreFactory storeFactory)
|
void |
setTimerManager(org.apache.servicemix.timers.TimerManager timerManager)
|
void |
setWsdlExchangeTarget(ExchangeTarget wsdlExchangeTarget)
|
void |
setWsdlResource(org.springframework.core.io.Resource wsdlResource)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint |
|---|
activate, deactivate, getRole, processInOnly, processInOut |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
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 |
| Field Detail |
|---|
protected org.springframework.core.io.Resource wsdlResource
protected org.apache.servicemix.store.Store store
protected org.apache.servicemix.store.StoreFactory storeFactory
protected org.apache.servicemix.common.locks.LockManager lockManager
protected org.apache.servicemix.timers.TimerManager timerManager
protected ExchangeTarget wsdlExchangeTarget
| Constructor Detail |
|---|
public EIPEndpoint()
| Method Detail |
|---|
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 org.apache.servicemix.common.locks.LockManager getLockManager()
public void setLockManager(org.apache.servicemix.common.locks.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 set
public void start()
throws Exception
start in interface org.apache.servicemix.common.Endpointstart in class org.apache.servicemix.common.endpoints.SimpleEndpointException
public void stop()
throws Exception
stop in interface org.apache.servicemix.common.Endpointstop in class org.apache.servicemix.common.endpoints.SimpleEndpointException
public void process(javax.jbi.messaging.MessageExchange exchange)
throws Exception
process in interface org.apache.servicemix.common.Endpointprocess in class org.apache.servicemix.common.endpoints.ProviderEndpointExceptionpublic Document getDescription()
getDescription in interface org.apache.servicemix.common.EndpointgetDescription in class org.apache.servicemix.common.endpoints.AbstractEndpointpublic javax.wsdl.Definition getDefinition()
getDefinition in class org.apache.servicemix.common.endpoints.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)
protected Document getDescriptionForExchangeTarget(ExchangeTarget match)
throws javax.jbi.JBIException
javax.jbi.JBIException
protected javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForExchangeTarget(ExchangeTarget match)
throws javax.jbi.JBIException
match -
javax.jbi.JBIException
protected javax.jbi.servicedesc.ServiceEndpoint chooseFirstEndpointWithDescriptor(javax.jbi.servicedesc.ServiceEndpoint[] endpoints)
throws javax.jbi.JBIException
javax.jbi.JBIException
protected abstract void processAsync(javax.jbi.messaging.MessageExchange exchange)
throws Exception
Exception
protected abstract void processSync(javax.jbi.messaging.MessageExchange exchange)
throws Exception
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 set
protected 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 added
javax.jbi.messaging.MessagingException - if an attachment could not be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||