public class ReceiveTextCommand extends AbstractAgiCommand
Receives text from channels supporting it.
| Constructor and Description |
|---|
ReceiveTextCommand()
Creates a new ReceiveTextCommand with a default timeout of 0 meaning to wait forever.
|
ReceiveTextCommand(int timeout)
Creates a new ReceiveTextCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
int |
getTimeout()
Returns the milliseconds to wait for the channel to receive the text.
|
void |
setTimeout(int timeout)
Sets the milliseconds to wait for the channel to receive the text.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic ReceiveTextCommand()
public ReceiveTextCommand(int timeout)
timeout - the milliseconds to wait for the channel to receive the text.public int getTimeout()
public void setTimeout(int timeout)
timeout - the milliseconds to wait for the channel to receive the text.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.