Asterisk-Java

org.asteriskjava.manager.event
Class AbstractChannelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.AbstractChannelEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AbstractChannelStateEvent, NewCallerIdEvent

public abstract class AbstractChannelEvent
extends ManagerEvent

Abstract base class providing common properties channel related events.

Version:
$Id: AbstractChannelEvent.java 560 2006-09-16 11:50:24Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected AbstractChannelEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getCallerId()
          Returns the Caller*ID of the channel if set or "<unknown>" if none has been set.
 java.lang.String getCallerIdName()
          Returns the Caller*ID Name of the channel if set or "<unknown>" if none has been set.
 java.lang.String getChannel()
          Returns the name of the channel.
 java.lang.String getUniqueId()
          Returns the unique id of the channel.
 void setCallerId(java.lang.String callerId)
          Sets the Caller*ID of the channel.
 void setCallerIdName(java.lang.String callerIdName)
          Sets the Caller*ID Name of the channel.
 void setChannel(java.lang.String channel)
          Sets the 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, getTimestamp, setDateReceived, setPrivilege, 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

AbstractChannelEvent

protected AbstractChannelEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getChannel

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

Returns:
the name of the channel.

setChannel

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

Parameters:
channel - the name of the channel.

getUniqueId

public java.lang.String getUniqueId()
Returns the unique id of the channel.

Returns:
the unique id of the channel.

setUniqueId

public void setUniqueId(java.lang.String uniqueId)
Sets the unique id of the channel.

Parameters:
uniqueId - the unique id of the channel.

getCallerId

public java.lang.String getCallerId()
Returns the Caller*ID of the channel if set or "<unknown>" if none has been set.


setCallerId

public void setCallerId(java.lang.String callerId)
Sets the Caller*ID of the channel.

Parameters:
callerId - the Caller*ID of the channel.

getCallerIdName

public java.lang.String getCallerIdName()
Returns the Caller*ID Name of the channel if set or "<unknown>" if none has been set.

Returns:
the Caller*ID Name of the channel.

setCallerIdName

public void setCallerIdName(java.lang.String callerIdName)
Sets the Caller*ID Name of the channel.

Parameters:
callerIdName - the Caller*ID Name of the channel.

Asterisk-Java

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