Created ClientLocal and BodyLocal which is where we'll track server-only

information.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5474 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-10-28 17:55:17 +00:00
parent c544146c45
commit d1be746bdb
7 changed files with 97 additions and 10 deletions
@@ -367,6 +367,7 @@ public class PresentsClient
{
// we'll be keeping this bad boy
_clobj = clobj;
_clobj.setLocal(ClientLocal.class, createLocalAttribute());
// if our connection was closed while we were resolving our client object, then just
// abandon ship
@@ -423,6 +424,14 @@ public class PresentsClient
disp.dispatch(this, message);
}
/**
* Creates a record that will be maintained only on the server to track client related bits.
*/
protected ClientLocal createLocalAttribute ()
{
return new ClientLocal();
}
/**
* Called when {@link #setUsername} has been called and the new client object is about to be
* applied to this client. The old client object will not yet have been destroyed, so any final