public abstract class AbstractAsynchronousRestClient extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractAsynchronousRestClient.ResponseHandler<T> |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAsynchronousRestClient(com.atlassian.httpclient.api.HttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected com.atlassian.util.concurrent.Promise<Void> |
call(com.atlassian.httpclient.api.ResponsePromise responsePromise) |
protected <T> com.atlassian.util.concurrent.Promise<T> |
callAndParse(com.atlassian.httpclient.api.ResponsePromise responsePromise,
AbstractAsynchronousRestClient.ResponseHandler<T> responseHandler) |
protected <T> com.atlassian.util.concurrent.Promise<T> |
callAndParse(com.atlassian.httpclient.api.ResponsePromise responsePromise,
JsonParser<?,T> parser) |
protected com.atlassian.httpclient.api.HttpClient |
client() |
protected com.atlassian.util.concurrent.Promise<Void> |
delete(URI uri) |
protected <T> com.atlassian.util.concurrent.Promise<T> |
getAndParse(URI uri,
JsonParser<?,T> parser) |
protected com.atlassian.util.concurrent.Promise<Void> |
post(URI uri) |
protected com.atlassian.util.concurrent.Promise<Void> |
post(URI uri,
org.codehaus.jettison.json.JSONObject entity) |
protected com.atlassian.util.concurrent.Promise<Void> |
post(URI uri,
String entity) |
protected <T> com.atlassian.util.concurrent.Promise<Void> |
post(URI uri,
T entity,
JsonGenerator<T> jsonGenerator) |
protected <I,T> com.atlassian.util.concurrent.Promise<T> |
postAndParse(URI uri,
I entity,
JsonGenerator<I> jsonGenerator,
JsonObjectParser<T> parser) |
protected <T> com.atlassian.util.concurrent.Promise<T> |
postAndParse(URI uri,
org.codehaus.jettison.json.JSONObject entity,
JsonObjectParser<T> parser) |
protected <T> com.atlassian.util.concurrent.Promise<Void> |
put(URI uri,
T entity,
JsonGenerator<T> jsonGenerator) |
protected <I,T> com.atlassian.util.concurrent.Promise<T> |
putAndParse(URI uri,
I entity,
JsonGenerator<I> jsonGenerator,
JsonObjectParser<T> parser) |
protected AbstractAsynchronousRestClient(com.atlassian.httpclient.api.HttpClient client)
protected final <T> com.atlassian.util.concurrent.Promise<T> getAndParse(URI uri, JsonParser<?,T> parser)
protected final <I,T> com.atlassian.util.concurrent.Promise<T> postAndParse(URI uri, I entity, JsonGenerator<I> jsonGenerator, JsonObjectParser<T> parser)
protected final <T> com.atlassian.util.concurrent.Promise<T> postAndParse(URI uri, org.codehaus.jettison.json.JSONObject entity, JsonObjectParser<T> parser)
protected final com.atlassian.util.concurrent.Promise<Void> post(URI uri, org.codehaus.jettison.json.JSONObject entity)
protected final <T> com.atlassian.util.concurrent.Promise<Void> post(URI uri, T entity, JsonGenerator<T> jsonGenerator)
protected final <I,T> com.atlassian.util.concurrent.Promise<T> putAndParse(URI uri, I entity, JsonGenerator<I> jsonGenerator, JsonObjectParser<T> parser)
protected final <T> com.atlassian.util.concurrent.Promise<Void> put(URI uri, T entity, JsonGenerator<T> jsonGenerator)
protected final <T> com.atlassian.util.concurrent.Promise<T> callAndParse(com.atlassian.httpclient.api.ResponsePromise responsePromise,
AbstractAsynchronousRestClient.ResponseHandler<T> responseHandler)
protected final <T> com.atlassian.util.concurrent.Promise<T> callAndParse(com.atlassian.httpclient.api.ResponsePromise responsePromise,
JsonParser<?,T> parser)
protected final com.atlassian.util.concurrent.Promise<Void> call(com.atlassian.httpclient.api.ResponsePromise responsePromise)
protected com.atlassian.httpclient.api.HttpClient client()
Copyright © 2016 Atlassian. All rights reserved.