Package com.google.nigori.common.NigoriMessages

Examples of com.google.nigori.common.NigoriMessages.PutRequest


        .setAuth(authenticateRequestAsProtobuf(serverName, signer, REQUEST_PUT, index, revision, value))
        .setKey(ByteString.copyFrom(index))
        .setRevision(ByteString.copyFrom(revision))
        .setValue(ByteString.copyFrom(value));

    PutRequest req = reqBuilder.build();

    return req;
  }
View Full Code Here


        JsonConversionException, IOException, UnauthorisedException {
      String json = getJsonAsString(req, maxJsonQueryLength);
      if (DEBUG_JSON) {
        System.out.println(json);
      }
      PutRequest request = MessageLibrary.putRequestFromJson(json);

      if (!protocol.put(request)) {
        throw new ServletException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
            "Internal storage error for key "
                + Base64.encodeBase64String(request.getKey().toByteArray()));
      }

      emptyBody(resp);
    }
View Full Code Here

TOP

Related Classes of com.google.nigori.common.NigoriMessages.PutRequest

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.