Asterisk-Java

org.asteriskjava.manager.action
Class ExtensionStateAction

java.lang.Object
  extended by org.asteriskjava.manager.action.AbstractManagerAction
      extended by org.asteriskjava.manager.action.ExtensionStateAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class ExtensionStateAction
extends AbstractManagerAction

The ExtensionStateAction queries the state of an extension in a given context. If the extension has a hint, will use devicestate to check the status of the device connected to the extension.

Version:
$Id: ExtensionStateAction.java 1124 2008-08-18 03:25:01Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
ExtensionStateAction()
          Creates a new ExtensionStateAction.
ExtensionStateAction(java.lang.String exten, java.lang.String context)
          Creates a new ExtensionStateAction that queries the state of the given extension in the given context.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getContext()
          Returns the name of the context that contains the extension to query.
 java.lang.String getExten()
          Returns the extension to query.
 void setContext(java.lang.String context)
          Sets the name of the context that contains the extension to query.
 void setExten(java.lang.String exten)
          Sets the extension to query.
 
Methods inherited from class org.asteriskjava.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtensionStateAction

public ExtensionStateAction()
Creates a new ExtensionStateAction.


ExtensionStateAction

public ExtensionStateAction(java.lang.String exten,
                            java.lang.String context)
Creates a new ExtensionStateAction that queries the state of the given extension in the given context.

Parameters:
exten - the extension to query.
context - the name of the context that contains the extension to query.
Since:
1.0.0
Method Detail

getAction

public java.lang.String getAction()
Returns the name of this action, i.e. "ExtensionState".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getExten

public java.lang.String getExten()
Returns the extension to query.

Returns:
the extension to query.

setExten

public void setExten(java.lang.String exten)
Sets the extension to query.

Parameters:
exten - the extension to query.

getContext

public java.lang.String getContext()
Returns the name of the context that contains the extension to query.

Returns:
the name of the context that contains the extension to query.

setContext

public void setContext(java.lang.String context)
Sets the name of the context that contains the extension to query.

Parameters:
context - the name of the context that contains the extension to query.

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.