org.jdesktop.wonderland.client.cell
Class CellEditChannelConnection

java.lang.Object
  extended by org.jdesktop.wonderland.client.comms.BaseConnection
      extended by org.jdesktop.wonderland.client.cell.CellEditChannelConnection
All Implemented Interfaces:
ClientConnection

public class CellEditChannelConnection
extends BaseConnection

Handler for Cell Edit Channels.

Author:
Jordan Slott

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jdesktop.wonderland.client.comms.ClientConnection
ClientConnection.Status
 
Constructor Summary
CellEditChannelConnection()
           
 
Method Summary
 ConnectionType getConnectionType()
          Get the type of client
 void handleMessage(Message message)
          Handle a message from the server
 void send(CellEditMessage message)
          Send a cell message to a specific cell on the server
 void send(CellEditMessage message, ResponseListener listener)
          Send a cell message to a specific cell on the server with the given listener.
 ResponseMessage sendAndWait(CellEditMessage message)
          Send a cell messag to a specific cell on the server and wait for a response.
 
Methods inherited from class org.jdesktop.wonderland.client.comms.BaseConnection
addResponseListener, connect, connect, connected, disconnect, disconnected, getSession, getStatus, messageReceived, notifyResponseListener, send, send, sendAndWait, setStatus, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellEditChannelConnection

public CellEditChannelConnection()
Method Detail

getConnectionType

public ConnectionType getConnectionType()
Get the type of client

Returns:
CellChannelConnectionType.CELL_CLIENT_TYPE

send

public void send(CellEditMessage message)
Send a cell message to a specific cell on the server

Parameters:
message - the cell message to send
See Also:
org.jdesktop.wonderland.client.comms.WonderlandSession#send(WonderlandClient, Message)

send

public void send(CellEditMessage message,
                 ResponseListener listener)
Send a cell message to a specific cell on the server with the given listener.

Parameters:
message - the message to send
listener - the response listener to notify when a response is received.
See Also:
org.jdesktop.wonderland.client.comms.WonderlandSession#send(WonderlandClient, Message, ResponseListener)

sendAndWait

public ResponseMessage sendAndWait(CellEditMessage message)
                            throws java.lang.InterruptedException
Send a cell messag to a specific cell on the server and wait for a response.

Parameters:
message - the message to send
Throws:
java.lang.InterruptedException - if there is a problem sending a message to the given cell
See Also:
org.jdesktop.wonderland.client.comms.WonderlandSession#sendAndWait(WonderlandClient, Message)

handleMessage

public void handleMessage(Message message)
Handle a message from the server

Specified by:
handleMessage in class BaseConnection
Parameters:
message - the message to handle


Open Wonderland - http://openwonderland.org