Package org.eclipse.egit.github.core.client

Examples of org.eclipse.egit.github.core.client.GitHubRequest


    {
      String id = getId(repository);
      StringBuilder uri = new StringBuilder(SEGMENT_REPOS);
      uri.append('/').append(id);
      uri.append('/').append("zipball");
      GitHubRequest request = createRequest();
      request.setUri(uri);     
      return new ZipInputStream(getClient().getStream(request));
    }
View Full Code Here


        StringBuilder uri = new StringBuilder(SEGMENT_REPOS);
        uri.append('/').append(id);
        uri.append(SEGMENT_GIT);
        uri.append(SEGMENT_TREES);
        uri.append('/').append(sha);
        GitHubRequest request = createRequest();
        request.setUri(uri);
        System.out.println("uri: " + uri);
        request.setType(Tree.class);
        return (Tree) client.get(request).getBody();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.github.core.client.GitHubRequest

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