org.jdesktop.wonderland.client.comms
Class CellClientSession

java.lang.Object
  extended by org.jdesktop.wonderland.client.comms.WonderlandSessionImpl
      extended by org.jdesktop.wonderland.client.comms.CellClientSession
All Implemented Interfaces:
WonderlandSession
Direct Known Subclasses:
JmeClientSession

public class CellClientSession
extends WonderlandSessionImpl

An extension of WonderlandSession that attaches all the relevant handlers needed for a client using the Cell system


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.wonderland.client.comms.WonderlandSessionImpl
WonderlandSessionImpl.ClientRecord, WonderlandSessionImpl.SessionInternalHandler
 
Nested classes/interfaces inherited from interface org.jdesktop.wonderland.client.comms.WonderlandSession
WonderlandSession.Status
 
Constructor Summary
CellClientSession(ServerSessionManager manager, WonderlandServerInfo serverInfo)
           
CellClientSession(ServerSessionManager manager, WonderlandServerInfo serverInfo, java.lang.ClassLoader loader)
           
 
Method Summary
protected  CellCache createCellCache()
          Create the cell cache.
 CellCache getCellCache()
          Return the cell cache for this session
 CellCacheConnection getCellCacheConnection()
          Get the cell cache connection
 java.util.Properties getCellCacheProperties()
          Get the properties associated with the cell cache connection.
 CellChannelConnection getCellChannelConnection()
          Get the cell channel connection
 java.util.Properties getCellChannelProperties()
          Get the properties associated with the cell channel connection.
 CellEditChannelConnection getCellEditChannelConnection()
          Get the cell edit channel connection
 java.util.Properties getCellEditProperties()
          Get the properties associated with the cell edit connection.
 LocalAvatar getLocalAvatar()
          Return the local avatar for this session
 void login(LoginParameters loginParams)
          Override the login message to connect clients after the login succeeds.
 
Methods inherited from class org.jdesktop.wonderland.client.comms.WonderlandSessionImpl
addClientRecord, addSessionStatusListener, connect, connect, disconnect, fireClientStatusChanged, fireSessionMessageReceived, getClassLoader, getClientRecord, getClientRecord, getClientRecord, getConnection, getConnection, getConnections, getID, getInternalClient, getName, getProtocolName, getProtocolVersion, getServerInfo, getSessionManager, getSimpleClient, getStatus, getUserID, logout, removeClientRecord, removeSessionStatusListener, send, setClientID, setStatus, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellClientSession

public CellClientSession(ServerSessionManager manager,
                         WonderlandServerInfo serverInfo)

CellClientSession

public CellClientSession(ServerSessionManager manager,
                         WonderlandServerInfo serverInfo,
                         java.lang.ClassLoader loader)
Method Detail

getLocalAvatar

public LocalAvatar getLocalAvatar()
Return the local avatar for this session

Returns:

getCellCache

public CellCache getCellCache()
Return the cell cache for this session

Returns:
the cell cache

getCellCacheConnection

public CellCacheConnection getCellCacheConnection()
Get the cell cache connection

Returns:
the cell cache connection

getCellCacheProperties

public java.util.Properties getCellCacheProperties()
Get the properties associated with the cell cache connection.

Returns:
the properties for the cell cache connection

getCellChannelConnection

public CellChannelConnection getCellChannelConnection()
Get the cell channel connection

Returns:
the cell channel connection

getCellChannelProperties

public java.util.Properties getCellChannelProperties()
Get the properties associated with the cell channel connection.

Returns:
the properties for the cell channel connection

getCellEditChannelConnection

public CellEditChannelConnection getCellEditChannelConnection()
Get the cell edit channel connection

Returns:
the cell edit channel connection

getCellEditProperties

public java.util.Properties getCellEditProperties()
Get the properties associated with the cell edit connection.

Returns:
the properties for the cell edit connection

login

public void login(LoginParameters loginParams)
           throws LoginFailureException
Override the login message to connect clients after the login succeeds. If a client fails to connect, the login will be aborted and a LoginFailureException will be thrown

Specified by:
login in interface WonderlandSession
Overrides:
login in class WonderlandSessionImpl
Parameters:
loginParameters - the parameters to login with
Throws:
LoginFailureException - if the login fails or any of the clients fail to connect

createCellCache

protected CellCache createCellCache()
Create the cell cache. Called in the constructor after all connections have already been created.

Returns:
the newly created cell cache


Open Wonderland - http://openwonderland.org