Package org.jdesktop.wonderland.common.messages

Examples of org.jdesktop.wonderland.common.messages.OKMessage


            CellServerState state = message.getCellServerState();
            CellMO cellMO = getCell();
            cellMO.setServerState(state);

            // Notify the sender that things went OK
            sender.send(clientID, new OKMessage(message.getMessageID()));

            // Fetch a new client-state and set it. Send a message on the
            // cell channel with the new state.
            CellClientState clientState = cellMO.getClientState(null, clientID, null);
            cellMO.sendCellMessage(clientID, new CellClientStateMessage(cellMO.getCellID(), clientState));
View Full Code Here


                    componentMO.setServerState(compState);
                }
            }

            // Notify the sender that things went OK
            sender.send(clientID, new OKMessage(message.getMessageID()));

            // Fetch a new client-state and set it. Send a message on the
            // cell channel with the new state.
            CellClientState clientState = cellMO.getClientState(null, clientID, null);
            CellClientStateMessage ccsm = new CellClientStateMessage(cellID, clientState);
View Full Code Here

                }

                // Remove the component and send a success message back to the
                // client
                cellMO.removeComponent(component);
                sender.send(clientID, new OKMessage(message.getMessageID()));

                // Send the same event message to all clients as an asynchronous
                // event
                cellMO.sendCellMessage(clientID, message);
               
View Full Code Here

                                             WonderlandClientID clientID,
                                             Message message)
    {
        // if we got here, the client has permission to take control.  Just
        // send back an OK message
        return new OKMessage(message.getMessageID());
    }
View Full Code Here

            // find the appropriate map
            SharedMapImpl map = getMap(message.getMapName(), true);

            if (map.put(clientID, message))
            {
                return new OKMessage(message.getMessageID());
            }

            return new ErrorMessage(message.getMessageID(), "Request vetoed");
        }
View Full Code Here

            // find the appropriate map
            SharedMapImpl map = getMap(message.getMapName(), false);

            // remove the key from the map if the map exists
            if (map == null || map.remove(clientID, message)) {
                return new OKMessage(message.getMessageID());
            }

            return new ErrorMessage(message.getMessageID(), "Request vetied");
        }
View Full Code Here

                    um.viewRevalidate(avatars.get());
                }
            }
        }
        // send an OK back to the sender
        sender.send(clientID, new OKMessage(message.getMessageID()));
    }
View Full Code Here

            // record the client connection
            this.protocol = cp;
            recordConnect(cp, session);
           
            // send an OK message
            sendToSession(new OKMessage(psm.getMessageID()));
        } catch (PackerException eme) {
            sendError(eme.getMessageID(), null, eme);
        }
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.messages.OKMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.