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.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  }