本文整理汇总了Java中com.turbomanage.httpclient.RequestHandler类的典型用法代码示例。如果您正苦于以下问题:Java RequestHandler类的具体用法?Java RequestHandler怎么用?Java RequestHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RequestHandler类属于com.turbomanage.httpclient包,在下文中一共展示了RequestHandler类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AndroidHttpClient
import com.turbomanage.httpclient.RequestHandler; //导入依赖的package包/类
/**
* Constructs a client with baseUrl and custom {@link RequestHandler}.
*
* @param baseUrl
* @param requestHandler
*/
public AndroidHttpClient(String baseUrl, RequestHandler requestHandler) {
super(new AsyncTaskFactory(), baseUrl, requestHandler);
}
示例2: ParallelHttpClient
import com.turbomanage.httpclient.RequestHandler; //导入依赖的package包/类
/**
* Constructs a client with baseUrl and custom {@link RequestHandler}.
*
* @param baseUrl
* @param requestHandler
*/
public ParallelHttpClient(String baseUrl, RequestHandler requestHandler) {
super(new ParallelAsyncTaskFactory(), baseUrl, requestHandler);
}
示例3: MailjetClient
import com.turbomanage.httpclient.RequestHandler; //导入依赖的package包/类
/**
* Create a new Instance of the MailjetClient class and register the APIKEY/APISECRET. Use custom request handler.
* @param apiKey
* @param apiSecret
* @param handler
*/
public MailjetClient(String apiKey, String apiSecret, RequestHandler handler) {
init(apiKey, apiSecret, handler, null);
}