1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.response;
18
19 /***
20 * @author srt
21 * @version $Id: ExtensionStateResponse.java,v 1.3 2005/07/18 12:11:05 srt Exp $
22 */
23 public class ExtensionStateResponse extends ManagerResponse
24 {
25 /***
26 * Serial version identifier
27 */
28 private static final long serialVersionUID = -2044248427247227390L;
29 private String exten;
30 private String context;
31 private String hint;
32 private Integer status;
33
34 public String getExten()
35 {
36 return exten;
37 }
38
39 public void setExten(String exten)
40 {
41 this.exten = exten;
42 }
43
44 public String getContext()
45 {
46 return context;
47 }
48
49 public void setContext(String context)
50 {
51 this.context = context;
52 }
53
54 public String getHint()
55 {
56 return hint;
57 }
58
59 public void setHint(String hint)
60 {
61 this.hint = hint;
62 }
63
64 public Integer getStatus()
65 {
66 return status;
67 }
68
69 public void setStatus(Integer status)
70 {
71 this.status = status;
72 }
73
74 public String toString()
75 {
76 StringBuffer sb;
77
78 sb = new StringBuffer(getClass().getName() + ": ");
79 sb.append("actionId='" + getActionId() + "'; ");
80 sb.append("message='" + getMessage() + "'; ");
81 sb.append("response='" + getResponse() + "'; ");
82 sb.append("uniqueId='" + getUniqueId() + "'; ");
83 sb.append("exten='" + getExten() + "'; ");
84 sb.append("context='" + getContext() + "'; ");
85 sb.append("hint='" + getHint() + "'; ");
86 sb.append("status='" + getStatus() + "'; ");
87 sb.append("systemHashcode=" + System.identityHashCode(this));
88
89 return sb.toString();
90 }
91 }