|
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.AbstractChannelEvent
org.asteriskjava.manager.event.AbstractChannelStateEvent
public abstract class AbstractChannelStateEvent
Abstract base class providing common properties for HangupEvent, NewChannelEvent and NewStateEvent.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
protected |
AbstractChannelStateEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.Integer |
getChannelState()
Returns the new state of the channel. |
java.lang.String |
getChannelStateDesc()
Returns the new state of the channel as a descriptive text. |
java.lang.String |
getState()
Deprecated. as of 1.0.0, use getChannelStateDesc() instead or even better switch to numeric
values as returned by getChannelState() . |
void |
setChannelState(java.lang.Integer channelState)
Sets the new state of the channel. |
void |
setChannelStateDesc(java.lang.String channelStateDesc)
Sets the new state of the channel as a descriptive text. |
void |
setState(java.lang.String state)
Sets the new state of the channel as a descriptive text. |
Methods inherited from class org.asteriskjava.manager.event.AbstractChannelEvent |
---|
getCallerId, getCallerIdName, getCallerIdNum, getChannel, getUniqueId, setCallerId, setCallerIdName, setCallerIdNum, setChannel, setUniqueId |
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 |
Constructor Detail |
---|
protected AbstractChannelStateEvent(java.lang.Object source)
Method Detail |
---|
public java.lang.Integer getChannelState()
For Asterisk versions prior to 1.6 (that do not send the numeric value) it is derived from the descriptive text.
public void setChannelState(java.lang.Integer channelState)
channelState
- the new state of the channel.public java.lang.String getChannelStateDesc()
The following states are used:
public void setChannelStateDesc(java.lang.String channelStateDesc)
channelStateDesc
- the new state of the channel as a descriptive text.public java.lang.String getState()
getChannelStateDesc()
instead or even better switch to numeric
values as returned by getChannelState()
.
This is an alias for @getChannelStateDesc
.
public void setState(java.lang.String state)
The state property is used by Asterisk versions prior to 1.6.
state
- the new state of the channel as a descriptive text.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |