Package net.authorize.util
Class HttpCallTask
- java.lang.Object
-
- net.authorize.util.HttpCallTask
-
- All Implemented Interfaces:
Callable<ANetApiResponse>
public class HttpCallTask extends Object implements Callable<ANetApiResponse>
Callable task to make http calls in future- Author:
- ramittal
-
-
Constructor Summary
Constructors Constructor Description HttpCallTask(Environment env, ANetApiRequest request, Class<T> classType)Creates task to be called in future for making http call
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ANetApiResponsecall()Makes a http call, using the proxy if requested, and returns apiresponse with error code set appropriately
-
-
-
Constructor Detail
-
HttpCallTask
public HttpCallTask(Environment env, ANetApiRequest request, Class<T> classType)
Creates task to be called in future for making http call- Parameters:
env- Env to point torequest- Http request to sendclassType- Expected response type if successful
-
-
Method Detail
-
call
public ANetApiResponse call() throws Exception
Makes a http call, using the proxy if requested, and returns apiresponse with error code set appropriately- Specified by:
callin interfaceCallable<ANetApiResponse>- Returns:
- ANetApiResponse successful or failed response
- Throws:
Exception
-
-