Package javax.ws.rs.core

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


     */
    public WebResource queryParams(MultivaluedMap<String, String> params) {
        UriBuilder b = getUriBuilder();
        for (Map.Entry<String, List<String>> e : params.entrySet()) {
            for (String value : e.getValue())
                b.queryParam(e.getKey(), value);
        }
        return new WebResource(this, b);
    }

    // Builder that builds client request and handles it
View Full Code Here


     * @param value the query parameter value
     * @return the new web resource.
     */
    public AsyncWebResource queryParam(String key, String value) {
        UriBuilder b = getUriBuilder();
        b.queryParam(key, value);
        return new AsyncWebResource(this, b);
    }

    /**
     * Create a new WebResource from this web resource with additional
View Full Code Here

     */
    public AsyncWebResource queryParams(MultivaluedMap<String, String> params) {
        UriBuilder b = getUriBuilder();
        for (Map.Entry<String, List<String>> e : params.entrySet()) {
            for (String value : e.getValue())
                b.queryParam(e.getKey(), value);
        }
        return new AsyncWebResource(this, b);
    }

    // Builder that builds client request and handles it
View Full Code Here

     * @param value the query parameter value
     * @return the new web resource.
     */
    public AsyncViewResource queryParam(String key, String value) {
        UriBuilder b = getUriBuilder();
        b.queryParam(key, value);
        return new AsyncViewResource(this, b);
    }

    /**
     * Create a new WebResource from this web resource with additional
View Full Code Here

     */
    public AsyncViewResource queryParams(MultivaluedMap<String, String> params) {
        UriBuilder b = getUriBuilder();
        for (Map.Entry<String, List<String>> e : params.entrySet()) {
            for (String value : e.getValue())
                b.queryParam(e.getKey(), value);
        }
        return new AsyncViewResource(this, b);
    }

    // Builder that builds client request and handles it
View Full Code Here

     * @param value the query parameter value
     * @return the new web resource.
     */
    public ViewResource queryParam(String key, String value) {
        UriBuilder b = getUriBuilder();
        b.queryParam(key, value);
        return new ViewResource(this, b);
    }

    /**
     * Create a new WebResource from this web resource with additional
View Full Code Here

     */
    public ViewResource queryParams(MultivaluedMap<String, String> params) {
        UriBuilder b = getUriBuilder();
        for (Map.Entry<String, List<String>> e : params.entrySet()) {
            for (String value : e.getValue())
                b.queryParam(e.getKey(), value);
        }
        return new ViewResource(this, b);
    }

    // Builder that builds client request and handles it
View Full Code Here

  @Override
  public void removeVersion(URI versionUri, @Nullable URI moveFixIssuesToVersionUri,
      @Nullable URI moveAffectedIssuesToVersionUri, ProgressMonitor progressMonitor) {
    final UriBuilder uriBuilder = UriBuilder.fromUri(versionUri);
    if (moveFixIssuesToVersionUri != null) {
      uriBuilder.queryParam("moveFixIssuesTo", moveFixIssuesToVersionUri);
    }
    if (moveAffectedIssuesToVersionUri != null) {
      uriBuilder.queryParam("moveAffectedIssuesTo", moveAffectedIssuesToVersionUri);
    }
    delete(uriBuilder.build(), progressMonitor);
View Full Code Here

    final UriBuilder uriBuilder = UriBuilder.fromUri(versionUri);
    if (moveFixIssuesToVersionUri != null) {
      uriBuilder.queryParam("moveFixIssuesTo", moveFixIssuesToVersionUri);
    }
    if (moveAffectedIssuesToVersionUri != null) {
      uriBuilder.queryParam("moveAffectedIssuesTo", moveAffectedIssuesToVersionUri);
    }
    delete(uriBuilder.build(), progressMonitor);
  }

  @Override
View Full Code Here

  @Override
  public void removeWatcher(final URI watchersUri, final String username, final ProgressMonitor progressMonitor) {
    final UriBuilder uriBuilder = UriBuilder.fromUri(watchersUri);
    if (getVersionInfo(progressMonitor).getBuildNumber() >= ServerVersionConstants.BN_JIRA_4_4) {
      uriBuilder.queryParam("username", username);
    } else {
      uriBuilder.path(username).build();
    }
    delete(uriBuilder.build(), progressMonitor);
  }
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.