类 LocalHttpClient

java.lang.Object
cn.aradin.easy.http.support.LocalHttpClient

public class LocalHttpClient extends Object
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected static org.apache.http.client.HttpClient
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static org.apache.http.HttpResponse
    execute(org.apache.http.client.methods.HttpUriRequest request)
     
    static <T> T
    execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<T> responseHandler)
     
    static <T> T
    executeJsonResult(org.apache.http.client.methods.HttpUriRequest request, Type clazz)
    数据返回自动JSON对象解析
    static void
    init(int maxTotal, int maxPerRoute)
     
    static void
    initMchKeyStore(String keyStoreName, String keyStoreFilePath, String mch_id, int maxTotal, int maxPerRoute)
    初始化 MCH HttpClient KeyStore

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • 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