swpchat.server
Class ConnectionCollection

java.lang.Object
  |
  +--swpchat.server.SpecializedCollection
        |
        +--swpchat.server.ConnectionCollection

public class ConnectionCollection
extends SpecializedCollection

This class is a collection specialized in ClientConnection objects.

Author:
Christian Stüllenberg

Field Summary
private static ClientConnection objectType
          Pointer to store the special objectType, this Collection is used for.
 
Fields inherited from class swpchat.server.SpecializedCollection
map, objectClass
 
Constructor Summary
ConnectionCollection()
           
 
Method Summary
 boolean containsSessionKey(java.lang.String sessionKey)
          Deprecated.  
 ClientConnection getConnection(java.lang.String sessionKey)
          Method to get a value of the map.
protected  java.lang.Class getSpecialObjectClass()
          Implementation of the abstract method from superclass.
 void removeConnection(java.lang.String sessionKey)
          Deprecated.  
 boolean tryToAddConnection(java.lang.String sessionKey, ClientConnection connection)
          Deprecated.  
 
Methods inherited from class swpchat.server.SpecializedCollection
containsKey, getObject, iterator, keyIterator, removeObject, tryToAddObject
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

objectType

private static ClientConnection objectType
Pointer to store the special objectType, this Collection is used for.
Constructor Detail

ConnectionCollection

public ConnectionCollection()
Method Detail

getSpecialObjectClass

protected final java.lang.Class getSpecialObjectClass()
Implementation of the abstract method from superclass.
Overrides:
getSpecialObjectClass in class SpecializedCollection
Returns:
the class of the specialized object.

tryToAddConnection

public boolean tryToAddConnection(java.lang.String sessionKey,
                                  ClientConnection connection)
Deprecated.  

Use the method tryToAddObject from superclass.

removeConnection

public void removeConnection(java.lang.String sessionKey)
                      throws NoSuchMemberException
Deprecated.  

Use the method removeObject from superclass.

containsSessionKey

public boolean containsSessionKey(java.lang.String sessionKey)
Deprecated.  

Use the method containsKey from superclass.

getConnection

public ClientConnection getConnection(java.lang.String sessionKey)
                               throws NoSuchMemberException
Method to get a value of the map.
Parameters:
key - identifies the Connection.
Returns:
the value identified by the key.