1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.action;
18
19 /***
20 * The ExtensionStateAction queries the state of an extension in a given context.
21 *
22 * @author srt
23 * @version $Id: ExtensionStateAction.java,v 1.3 2005/07/16 13:19:34 srt Exp $
24 */
25 public class ExtensionStateAction extends AbstractManagerAction
26 {
27 /***
28 * Serializable version identifier
29 */
30 static final long serialVersionUID = 6537408784388696403L;
31
32 private String exten;
33 private String context;
34
35 /***
36 * Returns the name of this action, i.e. "ExtensionState".
37 */
38 public String getAction()
39 {
40 return "ExtensionState";
41 }
42
43 /***
44 * Returns the extension to query.
45 */
46 public String getExten()
47 {
48 return exten;
49 }
50
51 /***
52 * Sets the extension to query.
53 */
54 public void setExten(String exten)
55 {
56 this.exten = exten;
57 }
58
59 /***
60 * Returns the name of the context that contains the extension to query.
61 */
62 public String getContext()
63 {
64 return context;
65 }
66
67 /***
68 * Sets the name of the context that contains the extension to query.
69 */
70 public void setContext(String context)
71 {
72 this.context = context;
73 }
74 }