Package com.google.walkaround.proto.gson

Examples of com.google.walkaround.proto.gson.ConnectResponseGsonImpl


    } catch (AccessDeniedException e) {
      throw new BadRequestException("Object not found or access denied", e);
    }
    log.info("connect " + session + ": " + result);

    ConnectResponseGsonImpl response = sessionHelper.createConnectResponse(session, result);

    resp.setContentType("application/json");
    ServletUtil.writeJsonResult(resp.getWriter(),
        GsonProto.toJson(response));
  }
View Full Code Here


   * Signs the ObjectSession and puts it in a ConnectResponse together with the
   * ConnectResult.
   */
  public ConnectResponseGsonImpl createConnectResponse(
      ObjectSession session, ConnectResult result) {
    ConnectResponseGsonImpl response = new ConnectResponseGsonImpl();
    SignedObjectSessionGsonImpl signedSession = createSignedSession(session);
    response.setSignedSession(signedSession);
    response.setSignedSessionString(GsonProto.toJson(signedSession));
    if (result.getChannelToken() != null) {
      response.setChannelToken(result.getChannelToken());
    }
    response.setObjectVersion(result.getVersion());
    return response;
  }
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.gson.ConnectResponseGsonImpl

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.