Package org.waveprotocol.box.profile.ProfilesProto

Examples of org.waveprotocol.box.profile.ProfilesProto.ProfileRequest


   * @throws UnsupportedEncodingException if the request parameters encoding is invalid.
   */
  private static ProfileRequest parseProfileRequest(HttpServletRequest req,
      HttpServletResponse response) throws UnsupportedEncodingException {
    String[] addresses = URLDecoder.decode(req.getParameter("addresses"), "UTF-8").split(",");
    ProfileRequest profileRequest =
        ProfileRequest.newBuilder().addAllAddresses(Lists.newArrayList(addresses)).build();
    return profileRequest;
  }
View Full Code Here


    ParticipantId user = sessionManager.getLoggedInUser(req.getSession(false));
    if (user == null) {
      response.setStatus(HttpServletResponse.SC_FORBIDDEN);
      return;
    }
    ProfileRequest profileRequest = parseProfileRequest(req, response);
    ProfileResponse profileResponse = fetchProfiles(profileRequest, user);
    printJson(profileResponse, response);
  }
View Full Code Here

   * @throws UnsupportedEncodingException if the request parameters encoding is invalid.
   */
  private static ProfileRequest parseProfileRequest(HttpServletRequest req,
      HttpServletResponse response) throws UnsupportedEncodingException {
    String[] addresses = URLDecoder.decode(req.getParameter("addresses"), "UTF-8").split(",");
    ProfileRequest profileRequest =
        ProfileRequest.newBuilder().addAllAddresses(Lists.newArrayList(addresses)).build();
    return profileRequest;
  }
View Full Code Here

    ParticipantId user = sessionManager.getLoggedInUser(req.getSession(false));
    if (user == null) {
      response.setStatus(HttpServletResponse.SC_FORBIDDEN);
      return;
    }
    ProfileRequest profileRequest = parseProfileRequest(req, response);
    ProfileResponse profileResponse = fetchProfiles(profileRequest, user);
    printJson(profileResponse, response);
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.box.profile.ProfilesProto.ProfileRequest

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.