Examples of ProfileRequest


Examples of org.opentripplanner.profile.ProfileRequest

        makeSampleGrid(spt);
    }

    /** Make a max or min timesurface from propagated times in a ProfileRouter. */
    public TimeSurface (ProfileRouter profileRouter, boolean maxNotMin) {
        ProfileRequest req = profileRouter.request;
        lon = req.from.lon;
        lat = req.from.lat;
        id = makeUniqueId();
        dateTime = req.fromTime; // FIXME
        routerId = profileRouter.graph.routerId;
View Full Code Here

Examples of org.opentripplanner.profile.ProfileRequest

        QueryParameter.checkRangeInclusive(maxCarTime,  1, 480);
        QueryParameter.checkRangeInclusive(minBikeTime, 0, maxBikeTime);
        QueryParameter.checkRangeInclusive(minCarTime,  0, maxCarTime);
        QueryParameter.checkRangeInclusive(suboptimalMinutes, 0, 30);

        ProfileRequest req = new ProfileRequest();
        req.from         = from;
        req.to           = to;
        req.fromTime     = fromTime.toSeconds();
        req.toTime       = toTime.toSeconds();
        req.walkSpeed    = walkSpeed;
View Full Code Here

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

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

    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

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

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

    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
Copyright © 2018 www.massapi.com. 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.