public interface Terminal
The term terminal is chosen as a tribute to JTAPI.
A terminal is responsible to accept incoming connections and to close the
connection once the user hangs up or if application terminates. Other
functionality, like streaming of audio to the phone should be handled by
the corresponding implementation of a
Telephony implementation (if present) or
by the SpokenInput or
SynthesizedOutput implementations.
It may happen that the Telephony
needs resources from the terminal to fulfill its job. In that case it
is advisable to store a reference to the terminal in a custom implementation
of a ConnectionInformation. The
ConnectionInformation will be passed as an argument to the
RemoteConnectable.connect(org.jvoicexml.ConnectionInformation)
calls, once the resource is needed.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Retrieves the name of a terminal.
|
void |
stopWaiting()
Stops waiting for incoming connections.
|
void |
waitForConnections()
Starts waiting for incoming connections.
|
java.lang.String getName()
void waitForConnections()
throws java.io.IOException
This method is called if the CallManager starts up.
java.io.IOException - error waiting for connections.void stopWaiting()