|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.command.AGICommand net.sf.asterisk.fastagi.command.ReceiveCharCommand
public class ReceiveCharCommand
Receives a character of text on a channel.
Specify timeout to be the maximum time to wait for input in milliseconds, or
0 for infinite.
Most channels do not support the reception of text.
Returns the decimal value of the character if one is received, or 0 if the
channel does not support text reception. Returns -1 only on error/hangup.
Constructor Summary | |
---|---|
ReceiveCharCommand()
Creates a new ReceiveCharCommand with a default timeout of 0 meaning to wait for ever. |
|
ReceiveCharCommand(int timeout)
Creates a new ReceiveCharCommand. |
Method Summary | |
---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
int |
getTimeout()
Returns the milliseconds to wait for the channel to receive a character. |
void |
setTimeout(int timeout)
Sets the milliseconds to wait for the channel to receive a character. |
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand |
---|
escapeAndQuote, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReceiveCharCommand()
public ReceiveCharCommand(int timeout)
timeout
- the milliseconds to wait for the channel to receive a
character.Method Detail |
---|
public int getTimeout()
public void setTimeout(int timeout)
timeout
- the milliseconds to wait for the channel to receive a
character.public java.lang.String buildCommand()
AGICommand
buildCommand
in class AGICommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |