|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject net.sf.asterisk.manager.event.ManagerEvent
public abstract class ManagerEvent
Abstract base class for all Events that can be received from the Asterisk
server.
Events contain data pertaining to an event generated from within the Asterisk
core or an extension module.
There is one conrete subclass of ManagerEvent per each supported Asterisk
Event.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ManagerEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.util.Date |
getDateReceived()
Returns the point in time this event was received from the Asterisk server. Pseudo events that are not directly received from the asterisk server (for example ConnectEvent and DisconnectEvent) may return null . |
java.lang.String |
getPrivilege()
Returns the AMI authorization class of this event. This is one or more of system, call, log, verbose, command, agent or user. |
void |
setDateReceived(java.util.Date dateReceived)
Sets the point in time this event was received from the asterisk server. |
void |
setPrivilege(java.lang.String privilege)
Sets the AMI authorization class of this event. |
java.lang.String |
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 |
---|
public ManagerEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.util.Date getDateReceived()
null
.
public void setDateReceived(java.util.Date dateReceived)
public java.lang.String getPrivilege()
public void setPrivilege(java.lang.String privilege)
public java.lang.String toString()
toString
in class java.util.EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |