Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/reply
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31178/src/java/net/sf/asterisk/fastagi/reply
Modified Files:
AGIReply.java
Log Message:
Added synopsis property
Index: AGIReply.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/reply/AGIReply.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -p -r1.4 -r1.5
--- AGIReply.java 8 Mar 2005 16:48:35 -0000 1.4
+++ AGIReply.java 9 Mar 2005 20:30:08 -0000 1.5
@@ -73,6 +73,12 @@ public class AGIReply implements Seriali
* In case of status == 520 (invalid command syntax) this attribute contains
* the synopsis of the command.
*/
+ private String synopsis;
+
+ /**
+ * In case of status == 520 (invalid command syntax) this attribute contains
+ * the usage of the command.
+ */
private String usage;
/**
@@ -126,7 +132,29 @@ public class AGIReply implements Seriali
* syntax (getStatus() == SC_INVALID_COMMAND_SYNTAX).
*
* @return the synopsis of the command sent, <code>null</code> if there
- * were no syntax errors.
+ * were no syntax errors.
+ */
+ public String getSynopsis()
+ {
+ return synopsis;
+ }
+
+ /**
+ * Sets the synopsis of the command sent.
+ *
+ * @param synopsis the synopsis of the command sent.
+ */
+ public void setSynopsis(String synopsis)
+ {
+ this.synopsis = synopsis;
+ }
+
+ /**
+ * Returns the usage of the command sent if Asterisk expected a different
+ * syntax (getStatus() == SC_INVALID_COMMAND_SYNTAX).
+ *
+ * @return the usage of the command sent, <code>null</code> if there were
+ * no syntax errors.
*/
public String getUsage()
{
@@ -136,7 +164,7 @@ public class AGIReply implements Seriali
/**
* Sets the synopsis of the command sent.
*
- * @param usage the synopsis of the command sent.
+ * @param usage the usage of the command sent.
*/
public void setUsage(String usage)
{
|