public interface ImplementationPlatform extends PromptAccumulator
The implementation platform generates events in response to user actions (e.g. spoken or character input received, disconnect) and system events (e.g. timer expiration). Some of these events are acted upon the VoiceXML interpreter itself, as specified by the VoiceXML document, while others are acted upon by the VoiceXML interpreter context.
This is a facade to access the resources that are capable to handle those user actions.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all open resources.
|
CallControl |
getCallControl()
Retrieves the calling device.
|
DtmfInput |
getCharacterInput()
Retrieves the DTMF input device.
|
SystemOutput |
getSystemOutput()
Retrieves the audio output device.
|
UserInput |
getUserInput()
Retrieves the user input device.
|
boolean |
isUserInputActive()
Checks, if there is an acquired user input device.
|
void |
setEventBus(EventBus bus)
Sets the event bus to communicate events back to the interpreter.
|
void |
setSession(Session session)
Sets the current session.
|
void |
waitNonBargeInPlayed()
Delays until all prompts are played that do not allow for barge-in.
|
void |
waitOutputQueueEmpty()
Delays until all prompts are played.
|
queuePrompt, renderPrompts, setPromptTimeoutSystemOutput getSystemOutput() throws NoresourceError, ConnectionDisconnectHangupEvent
null.NoresourceError - Output device is not available.ConnectionDisconnectHangupEvent - the user hung upvoid waitOutputQueueEmpty()
void waitNonBargeInPlayed()
boolean isUserInputActive()
true if there is an acquired user input device.UserInput getUserInput() throws NoresourceError, ConnectionDisconnectHangupEvent
null.NoresourceError - Input device is not available.ConnectionDisconnectHangupEvent - the user hung upDtmfInput getCharacterInput() throws NoresourceError, ConnectionDisconnectHangupEvent
NoresourceError - Input device is not available.ConnectionDisconnectHangupEvent - the user hung upCallControl getCallControl() throws NoresourceError, ConnectionDisconnectHangupEvent
null.NoresourceError - Calling device is not available.ConnectionDisconnectHangupEvent - the user hung upvoid close()
void setEventBus(EventBus bus)
bus - the event busvoid setSession(Session session)
session - the current session.