org.jdesktop.wonderland.server.comms
Class WonderlandClientCommsProtocol

java.lang.Object
  extended by org.jdesktop.wonderland.server.comms.WonderlandClientCommsProtocol
All Implemented Interfaces:
java.io.Serializable, CommunicationsProtocol

public class WonderlandClientCommsProtocol
extends java.lang.Object
implements CommunicationsProtocol

The default communications protocol used by the Wonderland client.

Author:
jkaplan
See Also:
Serialized Form

Constructor Summary
WonderlandClientCommsProtocol()
           
 
Method Summary
 com.sun.sgs.app.ClientSessionListener createSessionListener(com.sun.sgs.app.ClientSession session, ProtocolVersion version)
          Get the session listener associated with this protocol.
 java.lang.String getName()
          Get the name of this protocol
 ProtocolVersion getVersion()
          Get the version of this protocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WonderlandClientCommsProtocol

public WonderlandClientCommsProtocol()
Method Detail

getName

public java.lang.String getName()
Get the name of this protocol

Specified by:
getName in interface CommunicationsProtocol
Returns:
"wonderland_client"

getVersion

public ProtocolVersion getVersion()
Get the version of this protocol

Specified by:
getVersion in interface CommunicationsProtocol
Returns:
the protocol version

createSessionListener

public com.sun.sgs.app.ClientSessionListener createSessionListener(com.sun.sgs.app.ClientSession session,
                                                                   ProtocolVersion version)
Description copied from interface: CommunicationsProtocol
Get the session listener associated with this protocol.

Specified by:
createSessionListener in interface CommunicationsProtocol
Parameters:
session - the client we are creating a session for
version - the protocol version the client is connecting with
Returns:
the session manager that will be used to handle client sessions from this manager.


Open Wonderland - http://openwonderland.org