edu.columbia.coms6901.pingtel.pingim
Class SubscribersList

java.lang.Object
  |
  +--edu.columbia.coms6901.pingtel.pingim.HelperClass
        |
        +--edu.columbia.coms6901.pingtel.pingim.SubscribersList

public class SubscribersList
extends HelperClass

Representation of current list of subscribers. Subscribers are other instances of PingIM (or a compatible client) that have asked to be notified whenever this instance changes its state/availability.

Version:
1.0
Author:
Micah Sherr

Field Summary
private static java.util.Vector subscribers
          list of subscribers
 
Fields inherited from class edu.columbia.coms6901.pingtel.pingim.HelperClass
application
 
Constructor Summary
SubscribersList()
          Creates a new instance of SubscribersList
 
Method Summary
 void add(java.lang.String sSIPAddress, int iExpireTime)
          Add subscriber to list
 void add(Subscriber subscriber)
          Add subscriber to list
 void delete(java.lang.String sSIPAddress)
          Deletes subscriber from list
protected static java.util.Vector getSubscribers()
          Gets the list of subscribers
static void notifySubscribers()
          Notify subscribers of a state change
 
Methods inherited from class edu.columbia.coms6901.pingtel.pingim.HelperClass
setApplication
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

subscribers

private static java.util.Vector subscribers
list of subscribers
Constructor Detail

SubscribersList

public SubscribersList()
Creates a new instance of SubscribersList
Method Detail

getSubscribers

protected static java.util.Vector getSubscribers()
Gets the list of subscribers
Returns:
list of subscribers

add

public void add(Subscriber subscriber)
Add subscriber to list
Parameters:
subscriber - Subscriber who will be added to list

add

public void add(java.lang.String sSIPAddress,
                int iExpireTime)
Add subscriber to list
Parameters:
subscriber - Subscriber who will be added to list

delete

public void delete(java.lang.String sSIPAddress)
Deletes subscriber from list
Parameters:
sSIPAddress - SIP address of subscriber

notifySubscribers

public static void notifySubscribers()
Notify subscribers of a state change