[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/manager/response ManagerResponse.jav
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-04-23 22:56:48
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5815/src/java/net/sf/asterisk/manager/response Modified Files: ManagerResponse.java Log Message: Applied Daniel Pocock's patch to the manager: - Added debugging - Added access to the raw attributes of ManagerResponse Index: ManagerResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/ManagerResponse.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -p -r1.3 -r1.4 --- ManagerResponse.java 13 Mar 2005 11:26:49 -0000 1.3 +++ ManagerResponse.java 23 Apr 2005 22:56:33 -0000 1.4 @@ -18,6 +18,7 @@ package net.sf.asterisk.manager.response import java.io.Serializable; import java.util.Date; +import java.util.Map; /** * Represents a response received from the Asterisk server as the result of a @@ -42,6 +43,22 @@ public class ManagerResponse implements private String response; private String message; private String uniqueId; + private Map attributes; + + public Map getAttributes() + { + return attributes; + } + + public void setAttributes(Map attributes) + { + this.attributes = attributes; + } + + public String getAttribute(String key) + { + return (String) attributes.get(key.toLowerCase()); + } /** * Returns the point in time this response was received from the asterisk |