Asterisk-Java

org.asteriskjava.manager.event
Class RenameEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.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 590 2007-01-21 12:01:04Z srt $
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 newUniqueId
          New unique id.
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 getNewUniqueId()
          Returns the new unique id 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 setNewUniqueId(java.lang.String newUniqueId)
          Sets the new unique id 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 org.asteriskjava.manager.event.ManagerEvent
getDateReceived, getPrivilege, getTimestamp, setDateReceived, setPrivilege, setTimestamp, 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.


newUniqueId

protected java.lang.String newUniqueId
New unique id.


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.

getNewUniqueId

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

This property is only available on BRIstuffed Asterisk servers.

The purpose of this property is unclear as the unique id is supposed to never change.

Returns:
the new unique id of the channel.
Since:
0.3

setNewUniqueId

public final void setNewUniqueId(java.lang.String newUniqueId)
Sets the new unique id of the channel.

This property is only available on BRIstuffed Asterisk servers.

The purpose of this property is unclear as the unique id is supposed to never change.

Parameters:
newUniqueId - the new unique id of the channel.
Since:
0.3

Asterisk-Java

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