|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.reply.impl.AGIReplyImpl
public class AGIReplyImpl
Default implementation of the AGIReply interface.
Field Summary |
---|
Fields inherited from interface net.sf.asterisk.fastagi.reply.AGIReply |
---|
SC_INVALID_COMMAND_SYNTAX, SC_INVALID_OR_UNKNOWN_COMMAND, SC_SUCCESS |
Constructor Summary | |
---|---|
AGIReplyImpl()
|
|
AGIReplyImpl(java.util.List lines)
|
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). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AGIReplyImpl()
public AGIReplyImpl(java.util.List lines)
Method Detail |
---|
public java.lang.String getFirstLine()
AGIReply
getFirstLine
in interface AGIReply
public java.util.List getLines()
AGIReply
getLines
in interface AGIReply
public int getResultCode()
getResultCode
in interface AGIReply
public char getResultCodeAsChar()
getResultCodeAsChar
in interface AGIReply
public java.lang.String getResult()
getResult
in interface AGIReply
public int getStatus()
getStatus
in interface AGIReply
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface AGIReply
name
- the name of the attribute to retrieve. The name is case
insensitive.
null
if it is not
set.public java.lang.String getExtra()
getExtra
in interface AGIReply
null
if not set.public java.lang.String getSynopsis()
getSynopsis
in interface AGIReply
null
if there
were no syntax errors.public java.lang.String getUsage()
getUsage
in interface AGIReply
null
if there were
no syntax errors.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |