Package com.google.walkaround.proto

Examples of com.google.walkaround.proto.ObjectSessionProto


        new ClientId(proto.getClientId()),
        proto.getStoreType());
  }

  public static ObjectSessionProto protoFromObjectSession(ObjectSession session) {
    ObjectSessionProto proto = new ObjectSessionProtoGsonImpl();
    proto.setObjectId(session.getObjectId().getId());
    proto.setClientId(session.getClientId().getId());
    proto.setStoreType(session.getStoreType());
    return proto;
  }
View Full Code Here


    proto.setStoreType(session.getStoreType());
    return proto;
  }

  private SignedObjectSessionGsonImpl createSignedSession(ObjectSession session) {
    ObjectSessionProto proto = protoFromObjectSession(session);
    SignedObjectSessionGsonImpl signedSession = new SignedObjectSessionGsonImpl();
    signedSession.setSession(proto);
    signedSession.setSignature(xsrfHelper.createToken(makeAction(proto)));
    return signedSession;
  }
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.ObjectSessionProto

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.