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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
objectType
private static ClientConnection objectType
- Pointer to store the special objectType, this Collection is used for.
ConnectionCollection
public ConnectionCollection()
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.