net.authorize.util
Class HttpCallTask

java.lang.Object
  extended by 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
HttpCallTask(Environment env, ANetApiRequest request, Class<T> classType)
          Creates task to be called in future for making http call
 
Method Summary
 ANetApiResponse call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 to
request - Http request to send
classType - Expected response type if successful
Method Detail

call

public ANetApiResponse call()
                     throws Exception
Specified by:
call in interface Callable<ANetApiResponse>
Throws:
Exception


Copyright © 2014. All Rights Reserved.