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 973 2008-02-03 16:21:12Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
protected  java.lang.String channel
          Old name of the channel before renaming occured.
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 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 getChannel()
          Returns the old name of the channel.
 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()
          Deprecated. use @getChannel instead.
 java.lang.String getUniqueId()
          Returns the unique id of the channel.
 void setChannel(java.lang.String channel)
          Sets the old name 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, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, 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

channel

protected java.lang.String channel
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)
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.

getChannel

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

Returns:
the old name of the channel.
Since:
1.0.0

setChannel

public void setChannel(java.lang.String channel)
Sets the old name of the channel.

The "Oldchannel" property has been renamed to "Channel" as of Asterisk 1.6.

Parameters:
channel - the old name of the channel.
Since:
1.0.0

getOldname

public final java.lang.String getOldname()
Deprecated. use @getChannel instead.

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.

The "Oldchannel" property is used by Asterisk up to 1.4 and has been renamed to "Channel" as of Asterisk 1.6.

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-2009 Stefan Reuter. All Rights Reserved.