类 LocalHttpClient
java.lang.Object
cn.aradin.easy.http.support.LocalHttpClient
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static org.apache.http.HttpResponseexecute(org.apache.http.client.methods.HttpUriRequest request) static <T> Texecute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<T> responseHandler) static <T> TexecuteJsonResult(org.apache.http.client.methods.HttpUriRequest request, Type clazz) 数据返回自动JSON对象解析static voidinit(int maxTotal, int maxPerRoute) static voidinitMchKeyStore(String keyStoreName, String keyStoreFilePath, String mch_id, int maxTotal, int maxPerRoute) 初始化 MCH HttpClient KeyStore
-
字段详细资料
-
httpClient
protected static org.apache.http.client.HttpClient httpClient
-
-
构造器详细资料
-
LocalHttpClient
public LocalHttpClient()
-
-
方法详细资料
-
init
public static void init(int maxTotal, int maxPerRoute) -
initMchKeyStore
public static void initMchKeyStore(String keyStoreName, String keyStoreFilePath, String mch_id, int maxTotal, int maxPerRoute) 初始化 MCH HttpClient KeyStore- 参数:
keyStoreName- keyStore 名称keyStoreFilePath- 私钥文件路径mch_id-maxTotal-maxPerRoute-
-
execute
public static org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) -
execute
public static <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<T> responseHandler) throws Exception - 抛出:
Exception
-
executeJsonResult
public static <T> T executeJsonResult(org.apache.http.client.methods.HttpUriRequest request, Type clazz) throws Exception 数据返回自动JSON对象解析- 参数:
request-clazz-- 返回:
- 抛出:
Exception
-