コード例 #1
0
 private String executeQuery(WebResource service, SearchCircle searchCircle, int page) {
   return service
       .path(TwitterRequest.SEARCH_DATA_TYPE_JSON)
       .queryParam(
           TwitterRequest.SEARCH_QUERY_PARAM_GEOCODE,
           TwitterRequest.getGeocodeParamValue(searchCircle))
       .queryParam(
           TwitterRequest.SEARCH_QUERY_PARAM_RPP, TwitterRequest.SEARCH_QUERY_PARAM_RPP_VALUE)
       .queryParam(TwitterRequest.SEARCH_QUERY_PARAM_PAGE, String.valueOf(page))
       .accept(MediaType.APPLICATION_JSON)
       .get(String.class);
 }