|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egit.github.core.client.GitHubRequest
public class GitHubRequest
GitHub API request class that contains the URI and parameters of the request
as well as the expected Type
of the response.
The generateUri()
method should be used to build a full URI that
contains both the base uri and the parameters set.
Constructor Summary | |
---|---|
GitHubRequest()
Create empty request |
Method Summary | |
---|---|
protected void |
addParams(StringBuilder uri)
Add request params to URI |
boolean |
equals(Object obj)
|
String |
generateUri()
Generate full uri |
Map<String,String> |
getParams()
|
String |
getResponseContentType()
|
Type |
getType()
|
String |
getUri()
|
int |
hashCode()
|
GitHubRequest |
setParams(Map<String,String> params)
|
GitHubRequest |
setResponseContentType(String responseContentType)
Set the desired response content type |
GitHubRequest |
setType(Type type)
|
GitHubRequest |
setUri(String uri)
|
GitHubRequest |
setUri(StringBuilder uri)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GitHubRequest()
Method Detail |
---|
public String getUri()
protected void addParams(StringBuilder uri)
uri
- public String generateUri()
public GitHubRequest setUri(StringBuilder uri)
uri
-
public GitHubRequest setUri(String uri)
uri
-
public Map<String,String> getParams()
public GitHubRequest setParams(Map<String,String> params)
params
-
public Type getType()
public GitHubRequest setType(Type type)
type
-
public String getResponseContentType()
public GitHubRequest setResponseContentType(String responseContentType)
responseContentType
-
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |