Package javax.ws.rs.core

Examples of javax.ws.rs.core.UriBuilder.queryParam()


    final UriBuilder uriBuilder = UriBuilder.fromUri(baseUri).path("issue/createmeta");

    if (options != null) {
      if (options.projectIds != null) {
        uriBuilder.queryParam("projectIds", Joiner.on(",").join(options.projectIds));
      }

      if (options.projectKeys != null) {
        uriBuilder.queryParam("projectKeys", Joiner.on(",").join(options.projectKeys));
      }
View Full Code Here


      if (options.projectIds != null) {
        uriBuilder.queryParam("projectIds", Joiner.on(",").join(options.projectIds));
      }

      if (options.projectKeys != null) {
        uriBuilder.queryParam("projectKeys", Joiner.on(",").join(options.projectKeys));
      }

      if (options.issueTypeIds != null) {
        uriBuilder.queryParam("issuetypeIds", Joiner.on(",").join(options.issueTypeIds));
      }
View Full Code Here

      if (options.projectKeys != null) {
        uriBuilder.queryParam("projectKeys", Joiner.on(",").join(options.projectKeys));
      }

      if (options.issueTypeIds != null) {
        uriBuilder.queryParam("issuetypeIds", Joiner.on(",").join(options.issueTypeIds));
      }

      final Iterable<String> issueTypeNames = options.issueTypeNames;
      if (issueTypeNames != null) {
        for (final String name : issueTypeNames) {
View Full Code Here

      }

      final Iterable<String> issueTypeNames = options.issueTypeNames;
      if (issueTypeNames != null) {
        for (final String name : issueTypeNames) {
          uriBuilder.queryParam("issuetypeNames", name);
        }
      }

      final Iterable<String> expandos = options.expandos;
      if (expandos != null && expandos.iterator().hasNext()) {
View Full Code Here

        }
      }

      final Iterable<String> expandos = options.expandos;
      if (expandos != null && expandos.iterator().hasNext()) {
        uriBuilder.queryParam("expand", Joiner.on(",").join(expandos));
      }
    }

    return getAndParse(uriBuilder.build(), createIssueMetadataJsonParser, progressMonitor);
  }
View Full Code Here

    final UriBuilder uriBuilder = UriBuilder.fromUri(worklogUri)
        .queryParam("adjustEstimate", worklogInput.getAdjustEstimate().restValue);

    switch (worklogInput.getAdjustEstimate()) {
      case NEW:
        uriBuilder.queryParam("newEstimate", Strings.nullToEmpty(worklogInput.getAdjustEstimateValue()));
        break;
      case MANUAL:
        uriBuilder.queryParam("reduceBy", Strings.nullToEmpty(worklogInput.getAdjustEstimateValue()));
        break;
    }
View Full Code Here

    switch (worklogInput.getAdjustEstimate()) {
      case NEW:
        uriBuilder.queryParam("newEstimate", Strings.nullToEmpty(worklogInput.getAdjustEstimateValue()));
        break;
      case MANUAL:
        uriBuilder.queryParam("reduceBy", Strings.nullToEmpty(worklogInput.getAdjustEstimateValue()));
        break;
    }

    post(uriBuilder.build(), new Callable<JSONObject>() {
      @Override
View Full Code Here

                postEntity.put(JQL_ATTRIBUTE, jql);
                if (maxResults != null && startAt != null) {
                    postEntity.put(START_AT_ATTRIBUTE, startAt);
                    postEntity.put(MAX_RESULTS_ATTRIBUTE, maxResults);
                }
                uriBuilder = uriBuilder.queryParam(EXPAND_ATTRIBUTE, Joiner.on(',').join(Iterables.transform(DEFAULT_EXPANDS, EXPANDO_TO_PARAM)));
            } catch (JSONException e) {
                throw new RestClientException(e);
            }
            return postAndParse(uriBuilder.build(), postEntity, parser, progressMonitor);
        } else {
View Full Code Here

            }
            return postAndParse(uriBuilder.build(), postEntity, parser, progressMonitor);
        } else {
            UriBuilder uriBuilder = UriBuilder.fromUri(searchUri).queryParam(JQL_ATTRIBUTE, jql);
            if (maxResults != null && startAt != null) {
                uriBuilder = uriBuilder.queryParam(MAX_RESULTS_ATTRIBUTE, maxResults).queryParam(START_AT_ATTRIBUTE, startAt);
            }
            URI uri = uriBuilder.queryParam(EXPAND_ATTRIBUTE, Joiner.on(',').join(Iterables.transform(DEFAULT_EXPANDS, EXPANDO_TO_PARAM))).build();
            return getAndParse(uri, parser, progressMonitor);
        }
    }
View Full Code Here

        } else {
            UriBuilder uriBuilder = UriBuilder.fromUri(searchUri).queryParam(JQL_ATTRIBUTE, jql);
            if (maxResults != null && startAt != null) {
                uriBuilder = uriBuilder.queryParam(MAX_RESULTS_ATTRIBUTE, maxResults).queryParam(START_AT_ATTRIBUTE, startAt);
            }
            URI uri = uriBuilder.queryParam(EXPAND_ATTRIBUTE, Joiner.on(',').join(Iterables.transform(DEFAULT_EXPANDS, EXPANDO_TO_PARAM))).build();
            return getAndParse(uri, parser, progressMonitor);
        }
    }

        @Override
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.