public class RestClient extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
delete(com.abiquo.model.transport.SingleResourceTransportDto dto) |
void |
delete(String uri) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
edit(T dto) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
get(com.abiquo.model.rest.RESTLink link,
Class<T> clazz) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
get(String uri,
Map<String,Object> queryParams,
String accept,
Class<T> returnClass) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
get(String uri,
Map<String,Object> queryParams,
String accept,
com.google.common.reflect.TypeToken<T> returnType) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
get(String uri,
String accept,
Class<T> returnClass) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
get(String uri,
String accept,
com.google.common.reflect.TypeToken<T> returnType) |
Json |
json()
Returns the
Json instance used to serialize and deserialize the request and response
bodies. |
<T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> |
list(com.abiquo.model.rest.RESTLink link,
Class<W> clazz) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> |
list(String uri,
Map<String,Object> queryParams,
String accept,
Class<W> returnClass) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> |
list(String uri,
Map<String,Object> queryParams,
String accept,
com.google.common.reflect.TypeToken<W> returnType) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> |
list(String uri,
String accept,
Class<W> returnClass) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> |
list(String uri,
String accept,
com.google.common.reflect.TypeToken<W> returnType) |
com.squareup.okhttp.Response |
multipartPost(String url,
String bodyName,
String body,
String fileName,
File file) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
post(String uri,
String accept,
Class<T> returnClass) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
post(String uri,
String accept,
String contentType,
com.abiquo.model.transport.SingleResourceTransportDto body,
Class<T> returnClass) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
post(String uri,
String accept,
String contentType,
com.abiquo.model.transport.SingleResourceTransportDto body,
com.google.common.reflect.TypeToken<T> returnType) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
post(String uri,
String accept,
String contentType,
String body,
Class<T> returnClass) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
post(String uri,
String accept,
com.google.common.reflect.TypeToken<T> returnType) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
put(String uri,
String accept,
Class<T> returnClass) |
void |
put(String uri,
String accept,
String contentType,
com.abiquo.model.transport.SingleResourceTransportDto body) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
put(String uri,
String accept,
String contentType,
com.abiquo.model.transport.SingleResourceTransportDto body,
Class<T> returnClass) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
put(String uri,
String accept,
String contentType,
com.abiquo.model.transport.SingleResourceTransportDto body,
com.google.common.reflect.TypeToken<T> returnType) |
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
put(String uri,
String accept,
com.google.common.reflect.TypeToken<T> returnType) |
com.squareup.okhttp.OkHttpClient |
rawClient()
Changes made to the returned client will affect all the subsequent requests.
|
<T extends com.abiquo.model.transport.SingleResourceTransportDto> |
refresh(T dto) |
com.abiquo.server.core.task.TaskDto |
waitForTask(com.abiquo.model.transport.AcceptedRequestDto<?> acceptedRequest,
int pollInterval,
int maxWait,
TimeUnit timeUnit) |
com.abiquo.server.core.task.TaskDto |
waitForTask(com.abiquo.server.core.task.TaskDto taskDto,
int pollInterval,
int maxWait,
TimeUnit timeUnit) |
com.abiquo.server.core.cloud.VirtualApplianceDto |
waitUntilUnlocked(com.abiquo.server.core.cloud.VirtualApplianceDto vapp,
int pollInterval,
int maxWait,
TimeUnit timeUnit) |
com.abiquo.server.core.cloud.VirtualMachineDto |
waitUntilUnlocked(com.abiquo.server.core.cloud.VirtualMachineDto vm,
int pollInterval,
int maxWait,
TimeUnit timeUnit) |
public com.squareup.okhttp.OkHttpClient rawClient()
If you want to create a new client without affecting the existing one, use the
OkHttpClient.clone() method on the returned client.
public Json json()
Json instance used to serialize and deserialize the request and response
bodies.public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T edit(T dto)
public void delete(com.abiquo.model.transport.SingleResourceTransportDto dto)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T refresh(T dto)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> Iterable<T> list(com.abiquo.model.rest.RESTLink link, Class<W> clazz)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> Iterable<T> list(String uri, String accept, Class<W> returnClass)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> Iterable<T> list(String uri, String accept, com.google.common.reflect.TypeToken<W> returnType)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> Iterable<T> list(String uri, Map<String,Object> queryParams, String accept, Class<W> returnClass)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto,W extends com.abiquo.model.transport.WrapperDto<T>> Iterable<T> list(String uri, Map<String,Object> queryParams, String accept, com.google.common.reflect.TypeToken<W> returnType)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T get(com.abiquo.model.rest.RESTLink link,
Class<T> clazz)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T get(String uri, String accept, Class<T> returnClass)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T get(String uri, String accept, com.google.common.reflect.TypeToken<T> returnType)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T get(String uri, Map<String,Object> queryParams, String accept, Class<T> returnClass)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T get(String uri, Map<String,Object> queryParams, String accept, com.google.common.reflect.TypeToken<T> returnType)
public void delete(String uri)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T post(String uri, String accept, String contentType, com.abiquo.model.transport.SingleResourceTransportDto body, Class<T> returnClass)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T post(String uri, String accept, String contentType, com.abiquo.model.transport.SingleResourceTransportDto body, com.google.common.reflect.TypeToken<T> returnType)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T post(String uri, String accept, Class<T> returnClass)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T post(String uri, String accept, String contentType, String body, Class<T> returnClass)
public com.squareup.okhttp.Response multipartPost(String url, String bodyName, String body, String fileName, File file)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T post(String uri, String accept, com.google.common.reflect.TypeToken<T> returnType)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T put(String uri, String accept, String contentType, com.abiquo.model.transport.SingleResourceTransportDto body, Class<T> returnClass)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T put(String uri, String accept, Class<T> returnClass)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T put(String uri, String accept, com.google.common.reflect.TypeToken<T> returnType)
public <T extends com.abiquo.model.transport.SingleResourceTransportDto> T put(String uri, String accept, String contentType, com.abiquo.model.transport.SingleResourceTransportDto body, com.google.common.reflect.TypeToken<T> returnType)
public void put(String uri, String accept, String contentType, com.abiquo.model.transport.SingleResourceTransportDto body)
public com.abiquo.server.core.task.TaskDto waitForTask(com.abiquo.model.transport.AcceptedRequestDto<?> acceptedRequest,
int pollInterval,
int maxWait,
TimeUnit timeUnit)
public com.abiquo.server.core.task.TaskDto waitForTask(com.abiquo.server.core.task.TaskDto taskDto,
int pollInterval,
int maxWait,
TimeUnit timeUnit)
public com.abiquo.server.core.cloud.VirtualMachineDto waitUntilUnlocked(com.abiquo.server.core.cloud.VirtualMachineDto vm,
int pollInterval,
int maxWait,
TimeUnit timeUnit)
public com.abiquo.server.core.cloud.VirtualApplianceDto waitUntilUnlocked(com.abiquo.server.core.cloud.VirtualApplianceDto vapp,
int pollInterval,
int maxWait,
TimeUnit timeUnit)
Copyright © 2008–2016 Abiquo Holdings S.L.. All rights reserved.