public class HttpEndpointClient extends Object
| Constructor and Description |
|---|
HttpEndpointClient() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.api.client.http.HttpResponse |
delete(String path) |
protected com.google.api.client.http.HttpResponse |
delete(String path,
Map<String,Object> options) |
protected com.google.api.client.http.HttpResponse |
get(String path) |
protected com.google.api.client.http.HttpResponse |
get(String path,
Map<String,Object> options) |
protected ApiResponse |
parseResponse(com.google.api.client.http.HttpResponse response,
Class<?> c)
Parse the response from the HTTP call into an instance of the given class.
|
protected com.google.api.client.http.HttpResponse |
patch(String path,
Object attributes) |
protected com.google.api.client.http.HttpResponse |
patch(String path,
Object attributes,
Map<String,Object> options) |
protected com.google.api.client.http.HttpResponse |
post(String path) |
protected com.google.api.client.http.HttpResponse |
post(String path,
Map<String,Object> attributes) |
protected com.google.api.client.http.HttpResponse |
post(String path,
Map<String,Object> attributes,
Map<String,Object> options) |
protected com.google.api.client.http.HttpResponse |
put(String path) |
protected com.google.api.client.http.HttpResponse |
put(String path,
Object attributes) |
protected com.google.api.client.http.HttpResponse |
put(String path,
Object attributes,
Map<String,Object> options) |
protected com.google.api.client.http.HttpResponse |
request(String method,
String url,
Object data,
Map<String,Object> options) |
void |
setTransport(com.google.api.client.http.HttpTransport transport)
Set the underlying transport mechanism.
|
public void setTransport(com.google.api.client.http.HttpTransport transport)
transport - The transport instanceprotected com.google.api.client.http.HttpResponse get(String path) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse get(String path, Map<String,Object> options) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse post(String path) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse post(String path, Map<String,Object> attributes) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse post(String path, Map<String,Object> attributes, Map<String,Object> options) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse put(String path) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse put(String path, Object attributes) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse put(String path, Object attributes, Map<String,Object> options) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse patch(String path, Object attributes) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse patch(String path, Object attributes, Map<String,Object> options) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse delete(String path) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse delete(String path, Map<String,Object> options) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected com.google.api.client.http.HttpResponse request(String method, String url, Object data, Map<String,Object> options) throws DnsimpleException, IOException
DnsimpleExceptionIOExceptionprotected ApiResponse parseResponse(com.google.api.client.http.HttpResponse response, Class<?> c) throws IOException
response - The parsed response objectc - The class to instantiate and use to build the response objectIOException - Any IO errorsCopyright © 2017 DNSimple. All rights reserved.