Asterisk-Java

org.asteriskjava.manager.event
Class AgentLoginEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.AgentLoginEvent
All Implemented Interfaces:
java.io.Serializable

public class AgentLoginEvent
extends ManagerEvent

An AgentLoginEvent is triggered when an agent is successfully logged in using AgentLogin.

It is implemented in channels/chan_agent.c

Version:
$Id: AgentLoginEvent.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
AgentLogoffEvent, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgentLoginEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getAgent()
          Returns the name of the agent that logged in.
 java.lang.String getChannel()
          Returns the name of the channel associated with the logged in agent.
 java.lang.String getLoginChan()
          Deprecated. use getChannel() instead.
 java.lang.String getUniqueId()
          Returns the unique id of the channel associated with the logged in agent.
 void setAgent(java.lang.String agent)
          Sets the name of the agent that logged in.
 void setChannel(java.lang.String channel)
          Sets the name of the channel associated with the logged in agent.
 void setUniqueId(java.lang.String uniqueId)
          Sets the unique id of the channel associated with the logged in agent.
 
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

AgentLoginEvent

public AgentLoginEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getAgent

public java.lang.String getAgent()
Returns the name of the agent that logged in.


setAgent

public void setAgent(java.lang.String agent)
Sets the name of the agent that logged in.


getLoginChan

public java.lang.String getLoginChan()
Deprecated. use getChannel() instead.

Returns the name of the channel associated with the logged in agent.


getChannel

public java.lang.String getChannel()
Returns the name of the channel associated with the logged in agent.

Returns:
the name of the channel associated with the logged in agent.
Since:
0.3

setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel associated with the logged in agent.

Parameters:
channel - the name of the channel associated with the logged in agent.
Since:
0.3

getUniqueId

public java.lang.String getUniqueId()
Returns the unique id of the channel associated with the logged in agent.

Returns:
the unique id of the channel associated with the logged in agent.

setUniqueId

public void setUniqueId(java.lang.String uniqueId)
Sets the unique id of the channel associated with the logged in agent.

Parameters:
uniqueId - the unique id of the channel associated with the logged in agent.

Asterisk-Java

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