Package org.jdesktop.wonderland.common.messages

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


            String className = "org.jdesktop.wonderland.server.cell." +
                    "MovableComponentMO";
            CellServerComponentMessage cscm =
                    CellServerComponentMessage.newAddMessage(
                    cell.getCellID(), className);
            ResponseMessage response = cell.sendCellMessageAndWait(cscm);
            if (response instanceof ErrorMessage) {
                logger.log(Level.WARNING, "Unable to add movable component " +
                        "for Cell " + cell.getName() + " with ID " +
                        cell.getCellID(),
                        ((ErrorMessage) response).getErrorCause());
View Full Code Here


     */
    private void addInteractionComponent(InteractionComponentServerState icss) {
        CellServerComponentMessage cscm =
                CellServerComponentMessage.newAddMessage(
                editor.getCell().getCellID(), icss);
        ResponseMessage response = editor.getCell().sendCellMessageAndWait(cscm);
        if (response instanceof ErrorMessage) {
            LOGGER.log(Level.WARNING, "Unable to add interaction component "
                    + "for Cell " + editor.getCell().getName() + " with ID "
                    + editor.getCell().getCellID(),
                    ((ErrorMessage) response).getErrorCause());
View Full Code Here

     */
    private void addNewInteractionComponent(NewInteractionComponentServerState icss) {
        CellServerComponentMessage cscm =
                CellServerComponentMessage.newAddMessage(
                editor.getCell().getCellID(), icss);
        ResponseMessage response = editor.getCell().sendCellMessageAndWait(cscm);
       
        if (response instanceof ErrorMessage) {
            LOGGER.log(Level.WARNING, "Unable to add highlight component "
                    + "for Cell " + editor.getCell().getName() + " with ID "
                    + editor.getCell().getCellID(),
View Full Code Here

        // error and return.
        CellID cellID = cell.getCellID();
        String className = "org.jdesktop.wonderland.server.cell.MovableComponentMO";
        CellServerComponentMessage cscm =
                CellServerComponentMessage.newAddMessage(cellID, className);
        ResponseMessage response = cell.sendCellMessageAndWait(cscm);
        if (response instanceof ErrorMessage) {
            logger.warning("Unable to add movable component for Cell" +
                    cell.getName() + " with ID " + cell.getCellID());
        }
    }
View Full Code Here

     */
    public void messageReceived(WonderlandClientSender sender,
                                WonderlandClientID clientID,
                                Message message)
    {
        ResponseMessage response;

        if (message instanceof SecretRequestMessage) {
            response = handleSecretRequest(sender, clientID,
                                           (SecretRequestMessage) message);
        } else if (message instanceof TakeControlRequestMessage) {
View Full Code Here

        // information and send it
        CellServerStateUpdateMessage msg = new CellServerStateUpdateMessage(
                selectedCell.getCellID(),
                updateState,
                stateUpdates.cellComponentServerStateSet);
        ResponseMessage response = selectedCell.sendCellMessageAndWait(msg);
        if (response instanceof ErrorMessage) {
            // XXX Probably should get a success/failed here!
            ErrorMessage em = (ErrorMessage) response;
            LOGGER.log(Level.WARNING, "Error applugin values: " +
                    em.getErrorMessage(), em.getErrorCause());
View Full Code Here

     * error
     */
    private CellServerState fetchCellServerState() {
        // Fetch the setup object from the Cell object. We send a message on
        // the cell channel, so we must fetch that first.
        ResponseMessage response = selectedCell.sendCellMessageAndWait(
                new CellServerStateRequestMessage(selectedCell.getCellID()));
        if (response == null) {
            return null;
        }

View Full Code Here

        // Send a ADD component message on the cell channel. Wait for a
        // response. If OK, then update the GUI with the new component.
        // Otherwise, display an error dialog box.
        CellServerComponentMessage message =
                CellServerComponentMessage.newAddMessage(cellID, state);
        ResponseMessage response = selectedCell.sendCellMessageAndWait(message);
        if (response == null) {
            // log and error and post a dialog box
            LOGGER.warning("Received a null reply from cell with id " +
                    selectedCell.getCellID() + " with name " +
                    selectedCell.getName() + " adding component.");
View Full Code Here

        // Send a message to the server with the cell id and class name and
        // wait for a response
        CellServerComponentMessage cscm =
                CellServerComponentMessage.newRemoveMessage(cellID, className);
        ResponseMessage response = selectedCell.sendCellMessageAndWait(cscm);
        if (response == null) {
            LOGGER.warning("Received a null reply from cell with id " +
                    cellID + " with name " + selectedCell.getName() +
                    " removing component.");
            return;
View Full Code Here

            String callID = CallID.getCallID(cellID);

            SoftphoneControlImpl.getInstance().setCallID(callID);

            // get the list of all presence information
            ResponseMessage rm;
            try {
                rm = sendAndWait(new ClientConnectMessage(cellID));
               
                if (rm instanceof ClientConnectResponseMessage) {
                    handleMessage(rm);
View Full Code Here

TOP

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

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.