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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
call
public ANetApiResponse call()
throws Exception
- Specified by:
call in interface Callable<ANetApiResponse>
- Throws:
Exception
Copyright © 2014. All Rights Reserved.