| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAPI(GloboDns globoDns) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.api.client.http.HttpRequestFactory |
buildHttpRequestFactory()
Customize HttpRequestFactory with authentication and error handling.
|
protected com.google.api.client.http.HttpRequest |
buildRequest(String method,
com.google.api.client.http.GenericUrl url,
Object payload) |
protected com.google.api.client.http.GenericUrl |
buildUrl(String suffixUrl) |
protected GloboDnsRoot<T> |
delete(String suffixUrl,
boolean returnsList) |
protected GloboDnsRoot<T> |
get(String suffixUrl,
boolean returnsList) |
protected GloboDns |
getGloboDns() |
protected abstract Type |
getListType() |
protected abstract Type |
getType() |
protected void |
handleExceptionIfNeeded(com.google.api.client.http.HttpResponse response) |
protected void |
insertAuthenticationHeaders(com.google.api.client.http.HttpRequest request) |
protected void |
interceptRequest(com.google.api.client.http.HttpRequest request) |
protected void |
interceptResponse(com.google.api.client.http.HttpResponse response) |
protected <E> GloboDnsRoot<E> |
parse(com.google.api.client.http.HttpResponse response,
Type type) |
protected <E> GloboDnsRoot<E> |
parse(String responseAsString,
Type type) |
protected ResponseWrapper |
performRequest(com.google.api.client.http.GenericUrl url,
String method,
Object payload) |
protected GloboDnsRoot<T> |
post(String suffixUrl,
Object payload,
boolean returnsList) |
protected GloboDnsRoot<T> |
put(String suffixUrl,
Object payload,
boolean returnsList) |
protected AbstractAPI(GloboDns globoDns)
protected GloboDns getGloboDns()
protected abstract Type getType()
protected abstract Type getListType()
protected com.google.api.client.http.HttpRequestFactory buildHttpRequestFactory()
protected void interceptRequest(com.google.api.client.http.HttpRequest request)
protected void insertAuthenticationHeaders(com.google.api.client.http.HttpRequest request)
protected void interceptResponse(com.google.api.client.http.HttpResponse response)
throws GloboDnsException,
IOException
GloboDnsExceptionIOExceptionprotected void handleExceptionIfNeeded(com.google.api.client.http.HttpResponse response)
throws GloboDnsException,
IOException
GloboDnsExceptionIOExceptionprotected <E> GloboDnsRoot<E> parse(String responseAsString, Type type) throws GloboDnsException
GloboDnsExceptionprotected <E> GloboDnsRoot<E> parse(com.google.api.client.http.HttpResponse response, Type type) throws GloboDnsException
GloboDnsExceptionprotected com.google.api.client.http.GenericUrl buildUrl(String suffixUrl)
protected GloboDnsRoot<T> get(String suffixUrl, boolean returnsList) throws GloboDnsException
GloboDnsExceptionprotected GloboDnsRoot<T> post(String suffixUrl, Object payload, boolean returnsList) throws GloboDnsException
GloboDnsExceptionprotected GloboDnsRoot<T> put(String suffixUrl, Object payload, boolean returnsList) throws GloboDnsException
GloboDnsExceptionprotected GloboDnsRoot<T> delete(String suffixUrl, boolean returnsList) throws GloboDnsException
GloboDnsExceptionprotected ResponseWrapper performRequest(com.google.api.client.http.GenericUrl url, String method, Object payload) throws GloboDnsException
GloboDnsExceptionprotected com.google.api.client.http.HttpRequest buildRequest(String method, com.google.api.client.http.GenericUrl url, Object payload) throws IOException
IOExceptionCopyright © 2018. All rights reserved.