public class ConnectionManager extends Object
This class holds the current sessions by TransportProtocol and ConnectionProtocol. The TransportProtocol objects can be used during authentication whilst the ConnectionProtocol objects can be used anytime after authentication. Do not attempt to get a ConnectionProtocol instance before or during user authentication as it is not created until the user has successfully authenticated.
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ConnectionListener listener) |
Connection[] |
getAllConnections() |
Connection |
getConnectionById(String sessionid) |
static ConnectionManager |
getInstance()
Get the only instance of the ConnectionManager
|
String[] |
getLoggedOnUsers()
Get a list of currently logged on users.
|
void |
removeListener(ConnectionListener listener) |
public static ConnectionManager getInstance()
public void addListener(ConnectionListener listener)
public void removeListener(ConnectionListener listener)
public Connection getConnectionById(String sessionid)
public Connection[] getAllConnections()
public String[] getLoggedOnUsers()
Copyright © 2012. All Rights Reserved.