Examples of GitlabHTTPRequestor


Examples of org.gitlab.api.http.GitlabHTTPRequestor

        _ignoreCertificateErrors = ignoreCertificateErrors;
        return this;
    }

    public GitlabHTTPRequestor retrieve() {
        return new GitlabHTTPRequestor(this);
    }
View Full Code Here

Examples of org.gitlab.api.http.GitlabHTTPRequestor

    public GitlabHTTPRequestor retrieve() {
        return new GitlabHTTPRequestor(this);
    }

    public GitlabHTTPRequestor dispatch() {
        return new GitlabHTTPRequestor(this).method("POST");
    }
View Full Code Here

Examples of org.gitlab.api.http.GitlabHTTPRequestor

    }
   
    public GitlabIssue createIssue(int projectId, int assigneeId, int milestoneId, String labels,
        String description, String title) throws IOException {
      String tailUrl = GitlabProject.URL + "/" + projectId + GitlabIssue.URL;
      GitlabHTTPRequestor requestor = dispatch();
      applyIssue(requestor, projectId, assigneeId, milestoneId, labels, description, title);

      return requestor.to(tailUrl, GitlabIssue.class);
    }
View Full Code Here

Examples of org.gitlab.api.http.GitlabHTTPRequestor

    }
   
    public GitlabIssue editIssue(int projectId, int issueId, int assigneeId, int milestoneId, String labels,
        String description, String title, GitlabIssue.Action action) throws IOException {
      String tailUrl = GitlabProject.URL + "/" + projectId + GitlabIssue.URL + "/" + issueId;
      GitlabHTTPRequestor requestor = retrieve().method("PUT");
      applyIssue(requestor, projectId, assigneeId, milestoneId, labels, description, title);
     
      if(action != GitlabIssue.Action.LEAVE) {
          requestor.with("state_event", action.toString().toLowerCase());
      }
     
      return requestor.to(tailUrl, GitlabIssue.class);
    }
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.