|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.egit.github.core.service.GitHubService
public abstract class GitHubService
Base GitHub service class.
| Field Summary | |
|---|---|
protected GitHubClient |
client
Client field |
| Constructor Summary | |
|---|---|
GitHubService()
Create service using a default GitHubClient |
|
GitHubService(GitHubClient client)
Create service for client |
|
| Method Summary | ||
|---|---|---|
protected boolean |
check(String uri)
Check if the uri returns a non-404 |
|
protected
|
createPagedRequest()
Unified paged request creation method that all sub-classes should use so overriding classes can extend and configure the default request. |
|
protected
|
createPagedRequest(int start,
int size)
Unified paged request creation method that all sub-classes should use so overriding classes can extend and configure the default request. |
|
protected
|
createPageIterator(PagedRequest<V> request)
Unified page iterator creation method that all sub-classes should use so overriding classes can extend and configure the default iterator. |
|
protected GitHubRequest |
createRequest()
Unified request creation method that all sub-classes should use so overriding classes can extend and configure the default request. |
|
protected
|
getAll(PagedRequest<V> request)
Get paged request by performing multiple requests until no more pages are available or an exception occurs. |
|
protected
|
getAll(PageIterator<V> iterator)
Get paged request by performing multiple requests until no more pages are available or an exception occurs. |
|
GitHubClient |
getClient()
Get configured client |
|
protected String |
getId(IRepositoryIdProvider provider)
Get id for repository |
|
protected GitHubService |
verifyRepository(String user,
String repository)
Verify user and repository name |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final GitHubClient client
| Constructor Detail |
|---|
public GitHubService()
GitHubClient
public GitHubService(GitHubClient client)
client - must be non-null| Method Detail |
|---|
public GitHubClient getClient()
protected GitHubRequest createRequest()
protected <V> PagedRequest<V> createPagedRequest()
protected <V> PagedRequest<V> createPagedRequest(int start,
int size)
start - size -
protected <V> PageIterator<V> createPageIterator(PagedRequest<V> request)
request -
protected <V> List<V> getAll(PagedRequest<V> request)
throws IOException
V - request -
IOException
protected <V> List<V> getAll(PageIterator<V> iterator)
throws IOException
V - iterator -
IOException
protected boolean check(String uri)
throws IOException
uri -
IOExceptionprotected String getId(IRepositoryIdProvider provider)
provider -
protected GitHubService verifyRepository(String user,
String repository)
user - repository -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||