net.sf.asterisk.manager.event
Class ResponseEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.ResponseEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgentsCompleteEvent, AgentsEvent, DBGetResponseEvent, OriginateEvent, ParkedCallEvent, ParkedCallsCompleteEvent, PeerEntryEvent, PeerlistCompleteEvent, QueueEntryEvent, QueueMemberEvent, QueueParamsEvent, QueueStatusCompleteEvent, StatusCompleteEvent, StatusEvent, ZapShowChannelsCompleteEvent, ZapShowChannelsEvent

public abstract class ResponseEvent
extends ManagerEvent

Abstract base class for events triggered in response to a ManagerAction.
All ResponseEvents contain an additional action id property that links the event to the action that caused it.

Version:
$Id: ResponseEvent.java,v 1.3 2005/07/16 00:16:02 srt Exp $
Author:
srt
See Also:
ManagerAction, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ResponseEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getActionId()
          Returns the action id of the ManagerAction that caused this event.
 java.lang.String getInternalActionId()
          Returns the internal action id of the ManagerAction that caused this event.
 void setActionId(java.lang.String actionId)
          Sets the action id of the ManagerAction that caused this event.
 void setInternalActionId(java.lang.String internalActionId)
          Sets the internal action id of the ManagerAction that caused this event.
 
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent
getDateReceived, getPrivilege, setDateReceived, setPrivilege, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseEvent

public ResponseEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getActionId

public java.lang.String getActionId()
Returns the action id of the ManagerAction that caused this event.

Returns:
the action id of the ManagerAction that caused this event.

setActionId

public void setActionId(java.lang.String actionId)
Sets the action id of the ManagerAction that caused this event.

Parameters:
actionId - the action id of the ManagerAction that caused this event.

getInternalActionId

public java.lang.String getInternalActionId()
Returns the internal action id of the ManagerAction that caused this event.

Returns:
the internal action id of the ManagerAction that caused this event.
Since:
0.2

setInternalActionId

public void setInternalActionId(java.lang.String internalActionId)
Sets the internal action id of the ManagerAction that caused this event.

Parameters:
internalActionId - the internal action id of the ManagerAction that caused this event.
Since:
0.2


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