public class HttpClient extends Object
| Constructor and Description |
|---|
HttpClient(String username,
String password) |
HttpClient(String username,
String password,
Proxy proxy) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAs(String url,
Class<T> type) |
com.google.gson.JsonElement |
getRawJson(String url) |
String |
getXML(String url) |
com.google.api.client.http.HttpRequest |
invokeGET(String url) |
void |
setMockResponse(String response) |
public void setMockResponse(String response)
public com.google.gson.JsonElement getRawJson(String url) throws IOException
IOExceptionpublic <T> T getAs(String url, Class<T> type) throws IOException
IOExceptionpublic String getXML(String url) throws IOException
IOExceptionpublic com.google.api.client.http.HttpRequest invokeGET(String url) throws IOException
IOExceptionCopyright © 2016. All rights reserved.