|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.jndi.client.CharacterInputStub
public final class CharacterInputStub
Stub for the CharacterInput.
Copyright © 2006-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
CharacterInput,
Serialized Form| Constructor Summary | |
|---|---|
CharacterInputStub()
Constructs a new object. |
|
CharacterInputStub(String id)
Constructs a new object. |
|
| Method Summary | |
|---|---|
void |
addCharacter(char dtmf)
The user entered a DTMF. |
protected void |
clearSkeleton()
Clears a known remote reference to the skeleton. |
void |
connect(RemoteClient client)
Establishes a connection from the given RemoteClient to this
object. |
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<RemoteCharacterInput> |
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. |
void |
setContext(Context ctx)
Sets the JNDI context. |
void |
startRecognition()
Detects and reports character and/or spoken input simultaneously. |
void |
stopRecognition()
Stops a previously started recognition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.naming.Referenceable |
|---|
getReference |
| Constructor Detail |
|---|
public CharacterInputStub()
public CharacterInputStub(String id)
id - The session ID.| Method Detail |
|---|
protected Class getLocalClass()
protected Class<RemoteCharacterInput> getRemoteClass()
public String getStubName()
getStubName in interface Stubpublic void addCharacter(char dtmf)
addCharacter in interface CharacterInputdtmf - Entered DTMF.
public void startRecognition()
throws NoresourceError,
BadFetchError
startRecognition in interface CharacterInputstartRecognition in interface InputDeviceNoresourceError - The input resource is not available.
BadFetchError - The active grammar contains some errors.public void stopRecognition()
stopRecognition in interface CharacterInputstopRecognition in interface InputDeviceCharacterInput.startRecognition()
public void connect(RemoteClient client)
throws IOException
RemoteClient to this
object.
connect in interface RemoteConnectableclient - data container with connection relevant data.
IOException - error establishing the connection.public 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 | |||||||||