Examples of sendAndWait()


Examples of org.jdesktop.wonderland.client.cell.CellEditChannelConnection.sendAndWait()

                session.getConnection(CellEditConnectionType.CLIENT_TYPE);
        CellCreateMessage msg = new CellCreateMessage(parentCellID, state);
//        connection.send(msg);
        ResponseMessage response = null;
        try {
            response = connection.sendAndWait(msg);
        } catch (InterruptedException ex) {
            Logger.getLogger(CellUtils.class.getName()).log(Level.SEVERE, null, ex);
        }
        if(response == null || !(response instanceof CellCreatedMessage)) {
            //handle here.
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        }

        TokenStruct token = getTokens(folderName);

        if (isUpload) {
            client.sendAndWait(ClientPrimitives.OE_FIRST_STEP_JSON, folderPath,
                    userID);

            String json = client.sendAndWait(ClientPrimitives.OE_JSON_UPLOAD,
                    folderPath, userID, "", String.valueOf(true)).getValue(
                    "json");
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        if (isUpload) {
            client.sendAndWait(ClientPrimitives.OE_FIRST_STEP_JSON, folderPath,
                    userID);

            String json = client.sendAndWait(ClientPrimitives.OE_JSON_UPLOAD,
                    folderPath, userID, "", String.valueOf(true)).getValue(
                    "json");
            FileSystemUtils.writePrivateFile("json.txt", json);

            Executable exec = new Executable("wpes1_linux");
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

            exec.add(token.getFolderIdGraph());
            exec.add(Configuration.LOCAL_PRIVATE_RESOURCES_PATH + "/next.txt");
            exec.add(acl);
            exec.run();
        } else {
            String tokenID = client
                    .sendAndWait(ClientPrimitives.OE_GET_INFO, folderPath, acl,
                            encryptionLevel, token.getOwnerID(), userID,
                            token.getFolderIdGraph()).getValue("tokenID")
                    .trim();
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

            boolean finished = true;
            int i = 1;
            do {
                boolean firstStep = (i == 1);

                String json = client.sendAndWait(
                        ClientPrimitives.OE_CREATE_JSON_DL, folderPath,
                        Boolean.toString(firstStep), nextToken, userID)
                        .getValue("json");

                FileSystemUtils.writePrivateFile("Json.txt", json);
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

                nextToken = FileSystemUtils.readPrivateFile("nextToken.txt");

                FileSystemUtils.deletePrivateFile("Json.txt");

                String result = client.sendAndWait(
                        ClientPrimitives.OE_FINISHED_DL_TOKEN, folderPath,
                        nextToken, userID).getValue("finished");

                finished = Boolean.parseBoolean(result);
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

     */
    public void updateToken(String owner, String passphrase, String aclUpdate) {

        OverEncryptClient client = new OverEncryptClient();

        Boolean noteEmpty = Boolean.valueOf(client.sendAndWait(
                ClientPrimitives.OE_START_UPDATE, folderPath, owner, aclUpdate)
                .getValue("isEmpty"));

        while (!noteEmpty) {
            String note = client.sendAndWait(ClientPrimitives.OE_NOTE,
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        Boolean noteEmpty = Boolean.valueOf(client.sendAndWait(
                ClientPrimitives.OE_START_UPDATE, folderPath, owner, aclUpdate)
                .getValue("isEmpty"));

        while (!noteEmpty) {
            String note = client.sendAndWait(ClientPrimitives.OE_NOTE,
                    folderPath, owner).getValue("note");
            FileSystemUtils.writePrivateFile("Note.txt", note);

            Response resp = client.sendAndWait(ClientPrimitives.OE_CURR,
                    folderPath, owner);
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

        while (!noteEmpty) {
            String note = client.sendAndWait(ClientPrimitives.OE_NOTE,
                    folderPath, owner).getValue("note");
            FileSystemUtils.writePrivateFile("Note.txt", note);

            Response resp = client.sendAndWait(ClientPrimitives.OE_CURR,
                    folderPath, owner);
            String acl = resp.getValue("acl");
            String destId = resp.getValue("destId");
            Boolean currentEmpty = Boolean.valueOf(resp.getValue("currEmpty"));
View Full Code Here

Examples of unibg.overencrypt.client.OverEncryptClient.sendAndWait()

                boolean firstStepUpdate = false;
                String nextToken = "";
                String finishedUpdateToken = "";

                do {
                    String jsonUp = client.sendAndWait(
                            ClientPrimitives.OE_JSON_UPDATE, folderPath, owner,
                            nextToken, String.valueOf(firstStepUpdate))
                            .getValue("jsonUp");

                    if (jsonUp.equals("{\"values\":[]}")) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.