|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egit.github.core.client.GitHubResponse
public class GitHubResponse
GitHub API response class that provides the parsed response body as well as any links to the first, previous, next, and last responses.
Field Summary | |
---|---|
protected Object |
body
Response body |
protected PageLinks |
links
Links to other pages |
protected HttpURLConnection |
response
HTTP response |
Constructor Summary | |
---|---|
GitHubResponse(HttpURLConnection response,
Object body)
Create response |
Method Summary | |
---|---|
Object |
getBody()
Parsed response body |
String |
getFirst()
Get link uri to first page |
String |
getHeader(String name)
Get header value |
String |
getLast()
Get link uri to last page |
protected PageLinks |
getLinks()
Get page links |
String |
getNext()
Get link uri to next page |
String |
getPrevious()
Get link uri to previous page |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final HttpURLConnection response
protected final Object body
protected PageLinks links
Constructor Detail |
---|
public GitHubResponse(HttpURLConnection response, Object body)
response
- body
- Method Detail |
---|
public String getHeader(String name)
name
-
protected PageLinks getLinks()
public String getFirst()
public String getPrevious()
public String getNext()
public String getLast()
public Object getBody()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |