PresentsClient -> PresentsSession (and so on).
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@774 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -30,7 +30,7 @@ import com.threerings.util.Name;
|
||||
import com.threerings.presents.net.AuthRequest;
|
||||
import com.threerings.presents.server.ClientFactory;
|
||||
import com.threerings.presents.server.ClientResolver;
|
||||
import com.threerings.presents.server.PresentsClient;
|
||||
import com.threerings.presents.server.PresentsSession;
|
||||
|
||||
import com.threerings.crowd.server.CrowdServer;
|
||||
|
||||
@@ -65,8 +65,8 @@ public class MiCasaServer extends CrowdServer
|
||||
|
||||
// configure the client manager to use our client class
|
||||
_clmgr.setClientFactory(new ClientFactory() {
|
||||
public Class<? extends PresentsClient> getClientClass (AuthRequest areq) {
|
||||
return MiCasaClient.class;
|
||||
public Class<? extends PresentsSession> getClientClass (AuthRequest areq) {
|
||||
return MiCasaSession.class;
|
||||
}
|
||||
public Class<? extends ClientResolver> getClientResolverClass (Name username) {
|
||||
return ClientResolver.class;
|
||||
|
||||
+5
-5
@@ -25,23 +25,23 @@ import com.google.inject.Inject;
|
||||
|
||||
import com.threerings.presents.net.BootstrapData;
|
||||
|
||||
import com.threerings.crowd.server.CrowdClient;
|
||||
import com.threerings.crowd.server.CrowdSession;
|
||||
|
||||
import com.threerings.micasa.data.MiCasaBootstrapData;
|
||||
import com.threerings.micasa.lobby.LobbyRegistry;
|
||||
|
||||
/**
|
||||
* Extends the Crowd client and provides bootstrap data specific to the MiCasa services.
|
||||
* Extends the Crowd session and provides bootstrap data specific to the MiCasa services.
|
||||
*/
|
||||
public class MiCasaClient extends CrowdClient
|
||||
public class MiCasaSession extends CrowdSession
|
||||
{
|
||||
@Override // from PresentsClient
|
||||
@Override // from PresentsSession
|
||||
protected BootstrapData createBootstrapData ()
|
||||
{
|
||||
return new MiCasaBootstrapData();
|
||||
}
|
||||
|
||||
@Override // from PresentsClient
|
||||
@Override // from PresentsSession
|
||||
protected void populateBootstrapData (BootstrapData data)
|
||||
{
|
||||
super.populateBootstrapData(data);
|
||||
@@ -21,12 +21,12 @@
|
||||
|
||||
package com.threerings.whirled.server;
|
||||
|
||||
import com.threerings.crowd.server.CrowdClient;
|
||||
import com.threerings.crowd.server.CrowdSession;
|
||||
|
||||
/**
|
||||
* The client object used by client management on the Whirled server.
|
||||
*/
|
||||
public class WhirledClient extends CrowdClient
|
||||
public class WhirledClient extends CrowdSession
|
||||
{
|
||||
// nothing needed at the moment
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import com.threerings.util.Name;
|
||||
import com.threerings.presents.net.AuthRequest;
|
||||
import com.threerings.presents.server.ClientFactory;
|
||||
import com.threerings.presents.server.ClientResolver;
|
||||
import com.threerings.presents.server.PresentsClient;
|
||||
import com.threerings.presents.server.PresentsSession;
|
||||
|
||||
import com.threerings.crowd.server.CrowdServer;
|
||||
|
||||
@@ -55,7 +55,7 @@ public abstract class WhirledServer extends CrowdServer
|
||||
|
||||
// configure the client to use our whirled client
|
||||
_clmgr.setClientFactory(new ClientFactory() {
|
||||
public Class<? extends PresentsClient> getClientClass (AuthRequest areq) {
|
||||
public Class<? extends PresentsSession> getClientClass (AuthRequest areq) {
|
||||
return WhirledClient.class;
|
||||
}
|
||||
public Class<? extends ClientResolver> getClientResolverClass (Name username) {
|
||||
|
||||
Reference in New Issue
Block a user