|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AGIReply
Reply received in response to an AGICommand.
The AGIReply contains information about success or failure of the execution
of an AGICommand and - depending on the command sent - additional information
returned, for example the value of a variable requested by a
GetVariableCommand.
AGICommand
Field Summary | |
---|---|
static int |
SC_INVALID_COMMAND_SYNTAX
Status code (520) indicating Asterisk was unable to process the AGICommand because the syntax used was not correct. |
static int |
SC_INVALID_OR_UNKNOWN_COMMAND
Status code (510) indicating Asterisk was unable to process the AGICommand because there is no command with the given name available. |
static int |
SC_SUCCESS
Status code (200) indicating Asterisk successfully processed the AGICommand. |
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
Returns an additional attribute contained in the reply. For example the reply to the StreamFileCommand contains an additional endpos attribute indicating the frame where the playback was stopped. |
java.lang.String |
getExtra()
Returns the text in parenthesis contained in this reply. The meaning of this property depends on the command sent. |
java.lang.String |
getFirstLine()
Returns the first line of the raw reply. |
java.util.List |
getLines()
Returns a List containing the lines of the raw reply. |
java.lang.String |
getResult()
Returns the result, that is the part directly following the "result=" string. |
int |
getResultCode()
Returns the return code (the result as int). |
char |
getResultCodeAsChar()
Returns the return code as character. |
int |
getStatus()
Returns the status code. Supported status codes are: 200 Success 510 Invalid or unknown command 520 Invalid command syntax |
java.lang.String |
getSynopsis()
Returns the synopsis of the command sent if Asterisk expected a different syntax (getStatus() == SC_INVALID_COMMAND_SYNTAX). |
java.lang.String |
getUsage()
Returns the usage of the command sent if Asterisk expected a different syntax (getStatus() == SC_INVALID_COMMAND_SYNTAX). |
Field Detail |
---|
static final int SC_SUCCESS
static final int SC_INVALID_OR_UNKNOWN_COMMAND
static final int SC_INVALID_COMMAND_SYNTAX
Method Detail |
---|
java.lang.String getFirstLine()
java.util.List getLines()
int getResultCode()
char getResultCodeAsChar()
java.lang.String getResult()
int getStatus()
java.lang.String getAttribute(java.lang.String name)
name
- the name of the attribute to retrieve. The name is case
insensitive.
null
if it is not
set.java.lang.String getExtra()
null
if not set.java.lang.String getSynopsis()
null
if there
were no syntax errors.java.lang.String getUsage()
null
if there were
no syntax errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |