Added getClient().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1277 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-04-18 20:46:43 +00:00
parent 988223cc3e
commit d635c003e2
@@ -1,5 +1,5 @@
//
// $Id: ClientManager.java,v 1.15 2002/04/18 00:44:50 shaper Exp $
// $Id: ClientManager.java,v 1.16 2002/04/18 20:46:43 mdb Exp $
package com.threerings.presents.server;
@@ -83,6 +83,16 @@ public class ClientManager implements ConnectionObserver
return _objmap.values().iterator();
}
/**
* Returns the client instance that manages the client session for the
* specified username or null if that client is not currently
* connected to the server.
*/
public PresentsClient getClient (String username)
{
return (PresentsClient)_usermap.get(username);
}
/**
* Returns the client object associated with the specified username.
* This will return null unless the client object is resolved for some