net.sf.asterisk.manager.action
Class AbstractManagerAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction
Direct Known Subclasses:
AbsoluteTimeoutAction, AgentCallbackLoginAction, AgentLogoffAction, AgentsAction, ChallengeAction, ChangeMonitorAction, CommandAction, DBGetAction, DBPutAction, EventsAction, ExtensionStateAction, GetVarAction, HangupAction, LoginAction, LogoffAction, MailboxCountAction, MailboxStatusAction, MonitorAction, OriginateAction, ParkedCallsAction, PingAction, QueueAddAction, QueuePauseAction, QueueRemoveAction, QueueStatusAction, RedirectAction, SetCDRUserFieldAction, SetVarAction, SIPPeersAction, SIPShowPeerAction, StatusAction, StopMonitorAction, ZapDialOffhookAction, ZapDNDOffAction, ZapDNDOnAction, ZapHangupAction, ZapShowChannelsAction, ZapTransferAction

public abstract class AbstractManagerAction
extends java.lang.Object
implements ManagerAction

This class implements the ManagerAction interface and can serve as base class for your concrete Action implementations.

Since:
0.2
Version:
$Id: AbstractManagerAction.java,v 1.1 2005/07/16 13:19:34 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
AbstractManagerAction()
           
 
Method Summary
abstract  java.lang.String getAction()
          Returns the name of the action.
 java.lang.String getActionId()
          Returns the action id.
 void setActionId(java.lang.String actionId)
          Sets the action id.
If the action id is set and sent to the asterisk server any response returned by the asterisk server will include the same action id.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractManagerAction

public AbstractManagerAction()
Method Detail

getAction

public abstract java.lang.String getAction()
Description copied from interface: ManagerAction
Returns the name of the action.

Specified by:
getAction in interface ManagerAction

getActionId

public java.lang.String getActionId()
Description copied from interface: ManagerAction
Returns the action id.

Specified by:
getActionId in interface ManagerAction

setActionId

public void setActionId(java.lang.String actionId)
Description copied from interface: ManagerAction
Sets the action id.
If the action id is set and sent to the asterisk server any response returned by the asterisk server will include the same action id. This way the action id can be used to track actions and their corresponding responses.

Specified by:
setActionId in interface ManagerAction

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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