|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcuba.webservice.WebserviceClientContext
public class WebserviceClientContext
Implementation of CUBA's client context interface providing client-side adapter implementations for all required components. The adapter route all components calls to a server using a webservice interface.
WSTClientAdapter| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface cuba.ContextI |
|---|
ContextI.Type |
| Field Summary | |
|---|---|
protected static java.util.Map |
clClientClasses
All sub-classes of WSTClientAdapter. |
static java.lang.String |
PASSWORD_PROPERTY
|
static java.lang.String |
WS_URL_PROPERTY
|
| Fields inherited from interface cuba.ClientContextI |
|---|
CALLER_PROPERTY |
| Constructor Summary | |
|---|---|
WebserviceClientContext()
|
|
WebserviceClientContext(java.util.Properties prop)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getComponent(java.lang.String pComponentName)
Returns the component by its name. |
javax.sql.DataSource |
getDataSource(java.lang.String arg0)
Not supported for webservices!!! |
javax.transaction.UserTransaction |
getTransaction()
Not supported for webservices!!! |
int |
getType()
Returns the type of context, to let the context holder perform operations depending on the environment it is working in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PASSWORD_PROPERTY
public static final java.lang.String WS_URL_PROPERTY
protected static java.util.Map clClientClasses
| Constructor Detail |
|---|
public WebserviceClientContext()
public WebserviceClientContext(java.util.Properties prop)
| Method Detail |
|---|
public int getType()
ContextI
getType in interface ContextIContextI.getType()
public java.lang.Object getComponent(java.lang.String pComponentName)
throws ReferenceException,
ConstructionException
The wanted component is retrieved by comparing the name of all sub-classes of WSTClientAdapter with the given
component-name appended by "_WSTClient".
getComponent in interface ContextIpComponentName - The (symbolic) name of the component to look up
ReferenceException - if the provided (symbolic) name cannot be resolved.
ConstructionException - if the container failed to provide the required componentContextI.getComponent(java.lang.String)
public javax.transaction.UserTransaction getTransaction()
throws javax.transaction.SystemException
getTransaction in interface ContextIjavax.transaction.SystemException
public javax.sql.DataSource getDataSource(java.lang.String arg0)
throws ConstructionException,
ReferenceException
getDataSource in interface ContextIarg0 - The symbolic name of the SQL source to look up
ConstructionException - if the container failed to provide
the required SQL database
ReferenceException - if the provided symbolic name cannot
be resolved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||