|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.client.jndi.JVoiceXmlStub
public final class JVoiceXmlStub
Stub for JVoiceXml.
JVoiceXml| Constructor Summary | |
|---|---|
JVoiceXmlStub()
Constructs a new object. |
|
JVoiceXmlStub(Context context)
Constructs a new object. |
|
| Method Summary | |
|---|---|
protected void |
clearSkeleton()
Clears a known remote reference to the skeleton. |
Session |
createSession(ConnectionInformation client)
Creates a new session. |
Context |
getContext()
Retrieves the context to use. |
protected ErrorEvent |
getErrorEvent(Throwable throwable)
Digs into the throwable and tries to find an ErrorEvent
in the root cause hierarchy. |
protected Class<?> |
getLocalClass()
Retrieves the type of the local interface. |
Reference |
getReference()
|
protected Class<RemoteJVoiceXml> |
getRemoteClass()
Retrieves the type of the remote interface. |
protected T |
getSkeleton(String... suffix)
Lazy instantiation of the skeleton. |
String |
getStubName()
Retrieves the name to which the stub is bound. |
String |
getVersion()
Retrieves the version information of JVoiceXml. |
void |
setContext(Context ctx)
Sets the JNDI context. |
void |
shutdown()
Shuts down the interpreter and frees all resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JVoiceXmlStub()
public JVoiceXmlStub(Context context)
context - The context to use.| Method Detail |
|---|
public String getStubName()
getStubName in interface Stubprotected Class<RemoteJVoiceXml> getRemoteClass()
protected Class<?> getLocalClass()
public String getVersion()
getVersion in interface JVoiceXml
public Session createSession(ConnectionInformation client)
throws ErrorEvent
The Session is the entry point to start the interpreter. A
session is obtained by a ConnectionInformation.
createSession in interface JVoiceXmlclient - information about the current connection,
maybe null. If it is null the
default implementation platform is used.
ErrorEvent - Error creating the session.public void shutdown()
shutdown in interface JVoiceXmlpublic final void setContext(Context ctx)
ctx - The context to use.public Context getContext()
public final Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingExceptionprotected final T getSkeleton(String... suffix)
This method tries to lookup the skeleton with the following
name
getRemoteClass().getSimpleName().suffix[0].suffix[1]...
If no suffixes are given the simple class name is used instead.
suffix - List of suffixes to be appended.
null in case of an error.protected final void clearSkeleton()
This method must be called in case of a remote exception. As a consequence a following method call will try to retreive a new fresh reference to the skeleton.
protected final ErrorEvent getErrorEvent(Throwable throwable)
ErrorEvent
in the root cause hierarchy.
throwable - The throwable to examine.
ErrorEvent or null if there
is none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||