net.sf.asterisk.manager.event
Class RenameEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.RenameEvent
All Implemented Interfaces:
java.io.Serializable

public class RenameEvent
extends ManagerEvent

A RenameEvent is triggered when the name of a channel is changed.
It is implemented in channel.c

Version:
$Id: RenameEvent.java,v 1.3 2005/02/23 22:56:41 srt Exp $
Author:
srt
See Also:
Serialized Form

Field Summary
protected  java.lang.String newname
          New name of the channel after renaming occured.
protected  java.lang.String oldname
          Old name of the channel before renaming occured.
protected  java.lang.String uniqueId
          Unique id of the channel.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RenameEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getNewname()
          Returns the new name of the channel.
 java.lang.String getOldname()
          Returns the old name of the channel.
 java.lang.String getUniqueId()
          Returns the unique id of the channel.
 void setNewname(java.lang.String newname)
          Sets the new name of the channel.
 void setOldname(java.lang.String oldname)
          Sets the old name of the channel.
 void setUniqueId(java.lang.String uniqueId)
          Sets the unique id of the channel.
 
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
 

Field Detail

oldname

protected java.lang.String oldname
Old name of the channel before renaming occured.


newname

protected java.lang.String newname
New name of the channel after renaming occured.


uniqueId

protected java.lang.String uniqueId
Unique id of the channel.

Constructor Detail

RenameEvent

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

getNewname

public final java.lang.String getNewname()
Returns the new name of the channel.

Returns:
the new name of the channel.

setNewname

public final void setNewname(java.lang.String newname)
Sets the new name of the channel.

Parameters:
newname - the new name of the channel.

getOldname

public final java.lang.String getOldname()
Returns the old name of the channel.

Returns:
the old name of the channel.

setOldname

public final void setOldname(java.lang.String oldname)
Sets the old name of the channel.

Parameters:
oldname - the old name of the channel.

getUniqueId

public final java.lang.String getUniqueId()
Returns the unique id of the channel.

Returns:
the unique id of the channel.

setUniqueId

public final void setUniqueId(java.lang.String uniqueId)
Sets the unique id of the channel.

Parameters:
uniqueId - the unique id of the channel.


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