|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.RenameEvent
public class RenameEvent
A RenameEvent is triggered when the name of a channel is changed.
It is implemented in channel.c
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 |
---|
protected java.lang.String channel
protected java.lang.String newname
protected java.lang.String newUniqueId
protected java.lang.String uniqueId
Constructor Detail |
---|
public RenameEvent(java.lang.Object source)
Method Detail |
---|
public final java.lang.String getNewname()
public final void setNewname(java.lang.String newname)
newname
- the new name of the channel.public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
The "Oldchannel" property has been renamed to "Channel" as of Asterisk 1.6.
channel
- the old name of the channel.public final java.lang.String getOldname()
@getChannel
instead.
public final void setOldname(java.lang.String oldname)
The "Oldchannel" property is used by Asterisk up to 1.4 and has been renamed to "Channel" as of Asterisk 1.6.
oldname
- the old name of the channel.public final java.lang.String getUniqueId()
public final void setUniqueId(java.lang.String uniqueId)
uniqueId
- the unique id of the channel.public final java.lang.String getNewUniqueId()
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.
public final void setNewUniqueId(java.lang.String newUniqueId)
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.
newUniqueId
- the new unique id of the channel.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |