Class HttpClientFactory

    • Constructor Detail

      • HttpClientFactory

        public HttpClientFactory()
    • Method Detail

      • getDefaultFactory

        public static HttpClientFactory getDefaultFactory()
        获取默认的HttpClient
        Returns:
      • setDefaultFactory

        public static void setDefaultFactory​(HttpClientFactory defaultFactory)
        显式设置默认的HttpClient
        Parameters:
        defaultFactory -
      • getDefaultParams

        public static HttpParams getDefaultParams()
        获取默认的HttpParams
        Returns:
      • setDefaultParams

        public static void setDefaultParams​(HttpParams params)
        Resolve the Http Parameter
        Parameters:
        params - 请求参数
      • getInstance

        public static HttpClient getInstance()
        获取HttpClient实例
        Returns:
      • getInstance

        public static HttpClient getInstance​(HttpParams params)
        获取HttpClient实例
        Parameters:
        params - Http参数
        Returns:
        HttpClinet实例
      • newInstance

        public abstract HttpClient newInstance​(HttpParams params)
        获取HttpClient实例
        Parameters:
        params - http参数 可为空
        Returns:
      • allowSSLContext

        public static SSLContext allowSSLContext()