public class GithubContentsClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GithubContentsClient.Builder
The GithubContentsClient builder.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends ContentsResponse> |
getContentsResponse(Class<T> tClass)
The getContentsResponse method returns an instance of class T which extends the
ContentsResponse class. |
void |
setHeader(String key,
String val)
Sets a header in HTTPS request.
|
public void setHeader(String key, String val)
key - the name of the headerval - the value of the headerpublic <T extends ContentsResponse> T getContentsResponse(Class<T> tClass) throws ReflectiveOperationException
ContentsResponse class.T - the class which holds API responsetClass - the Class instance of the type TReflectiveOperationException - if tClass does not exist or
if constructor fails to create an instance of TCopyright © 2019. All rights reserved.