public class OpenStackRequest<R> extends Object
Constructor and Description |
---|
OpenStackRequest() |
OpenStackRequest(OpenStackClient client,
HttpMethod method,
String path,
Entity<?> entity,
Class<R> returnType) |
Modifier and Type | Method and Description |
---|---|
protected static String |
buildPath(String... elements) |
String |
endpoint() |
OpenStackRequest<R> |
endpoint(String endpoint) |
Entity<?> |
entity() |
<T> Entity<T> |
entity(T entity,
String contentType) |
R |
execute() |
OpenStackRequest<R> |
header(String name,
Object value) |
Map<String,List<Object>> |
headers() |
<T> Entity<T> |
json(T entity) |
HttpMethod |
method() |
OpenStackRequest<R> |
method(HttpMethod method) |
String |
path() |
OpenStackRequest<R> |
path(String path) |
OpenStackRequest<R> |
queryParam(String key,
Object value) |
Map<String,List<Object>> |
queryParams() |
Class<R> |
returnType() |
void |
returnType(Class<R> returnType) |
String |
toString() |
public OpenStackRequest()
public OpenStackRequest(OpenStackClient client, HttpMethod method, String path, Entity<?> entity, Class<R> returnType)
public OpenStackRequest<R> endpoint(String endpoint)
public String endpoint()
public OpenStackRequest<R> method(HttpMethod method)
public HttpMethod method()
public OpenStackRequest<R> path(String path)
public String path()
public OpenStackRequest<R> header(String name, Object value)
public Entity<?> entity()
public <T> Entity<T> json(T entity)
public R execute()
public OpenStackRequest<R> queryParam(String key, Object value)
Copyright © 2012–2016. All rights reserved.