Package com.google.walkaround.proto.gson.ClientVarsGsonImpl

Examples of com.google.walkaround.proto.gson.ClientVarsGsonImpl.LiveClientVarsGsonImpl


        inlineNocacheJs(), channelApiUrl);
  }

  private void writeLiveClientResponse(HttpServletRequest req, HttpServletResponse resp,
      ClientId clientId, LoadedWave wave) throws IOException {
    LiveClientVarsGsonImpl vars = new LiveClientVarsGsonImpl();
    vars.setClientVersion(clientVersion);
    vars.setRandomSeed(random.nextInt());
    vars.setUserEmail(participantId.getAddress());
    vars.setHaveOauthToken(userContext.hasOAuthCredentials());
    vars.setConvSnapshot(wave.getConvSnapshotWithDiffs());
    vars.setConvConnectResponse(
        sessionHelper.createConnectResponse(
            new ObjectSession(wave.getConvObjectId(), clientId, convStore.getRootEntityKind()),
            wave.getConvConnectResult()));
    if (wave.getUdw() != null) {
      UdwLoadDataGsonImpl udwLoadData = new UdwLoadDataGsonImpl();
      udwLoadData.setConnectResponse(
          sessionHelper.createConnectResponse(
              new ObjectSession(wave.getUdw().getObjectId(), clientId,
                  udwStore.getRootEntityKind()),
              wave.getUdw().getConnectResult()));
      udwLoadData.setSnapshot(wave.getUdw().getSnapshot());
      vars.setUdw(udwLoadData);
    }
    setResponseHeaders(resp);
    Wave.write(resp.getWriter(), new GxpContext(getLocale(req)),
        analyticsAccount, clientVarString(vars, null, null), true,
        inlineNocacheJs(), channelApiUrl);
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.gson.ClientVarsGsonImpl.LiveClientVarsGsonImpl

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.