public class HttpCallTask extends Object implements Callable<ANetApiResponse>
| Constructor and Description |
|---|
HttpCallTask(Environment env,
ANetApiRequest request,
Class<T> classType)
Creates task to be called in future for making http call
|
| Modifier and Type | Method and Description |
|---|---|
ANetApiResponse |
call()
Makes a http call, using the proxy if requested, and returns apiresponse
with error code set appropriately
|
public HttpCallTask(Environment env, ANetApiRequest request, Class<T> classType)
env - Env to point torequest - Http request to sendclassType - Expected response type if successfulpublic ANetApiResponse call() throws Exception
call in interface Callable<ANetApiResponse>ExceptionCopyright © 2024. All rights reserved.