|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.jndi.client.SessionStub
public final class SessionStub
Stub for the Session.
Copyright © 2006-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
Session,
Serialized Form| Constructor Summary | |
|---|---|
SessionStub()
Constructs a new object. |
|
SessionStub(Context context)
Constructs a new object. |
|
SessionStub(String id)
Constructs a new object. |
|
| Method Summary | |
|---|---|
void |
call(URI uri)
Handles a call request. |
protected void |
clearSkeleton()
Clears a known remote reference to the skeleton. |
void |
close()
Closes this session. |
CharacterInput |
getCharacterInput()
Retrieves the DTMF input device. |
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<RemoteSession> |
getRemoteClass()
Retrieves the type of the remote interface. |
String |
getSessionID()
Retrieves the universal unique identifier for this session. |
protected T |
getSkeleton(String... suffix)
Lazy instantiation of the skeleton. |
String |
getStubName()
Retrieves the name to which the stub is bound. |
void |
hangup()
Handles a hangup request. |
void |
setContext(Context ctx)
Sets the JNDI context. |
void |
waitSessionEnd()
Delays until the session ends. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionStub()
public SessionStub(Context context)
context - The context to use.public SessionStub(String id)
id - The session id.| Method Detail |
|---|
public String getStubName()
getStubName in interface Stubprotected Class<RemoteSession> getRemoteClass()
protected Class getLocalClass()
public void call(URI uri)
throws ErrorEvent
Starts processing of the given application and returns immediately.
call in interface Sessionuri - URI of the first document to load.
ErrorEvent - Error initiating the call.public void hangup()
hangup in interface Session
public CharacterInput getCharacterInput()
throws NoresourceError
getCharacterInput in interface SessionNoresourceError - Input device is not available.
public void waitSessionEnd()
throws ErrorEvent
waitSessionEnd in interface SessionErrorEvent - Error processing the call.public void close()
If no hangup call was initiated, the session is aborted.
close in interface Sessionpublic String getSessionID()
getSessionID in interface Sessionpublic 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 | |||||||||