View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
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  }