mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 16:18:51 +08:00
This commit is contained in:
parent
782bc6a772
commit
03f029c68c
@ -5,6 +5,7 @@ import org.apache.http.impl.client.CloseableHttpClient;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* httpclient build interface
|
* httpclient build interface
|
||||||
|
* @author kakotor
|
||||||
*/
|
*/
|
||||||
public interface ApacheHttpClientBuilder {
|
public interface ApacheHttpClientBuilder {
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package me.chanjar.weixin.common.util.http;
|
package me.chanjar.weixin.common.util.http;
|
||||||
|
|
||||||
import me.chanjar.weixin.common.util.StringUtils;
|
import java.io.IOException;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import org.apache.http.annotation.NotThreadSafe;
|
import org.apache.http.annotation.NotThreadSafe;
|
||||||
import org.apache.http.auth.AuthScope;
|
import org.apache.http.auth.AuthScope;
|
||||||
import org.apache.http.auth.UsernamePasswordCredentials;
|
import org.apache.http.auth.UsernamePasswordCredentials;
|
||||||
@ -21,11 +23,11 @@ import org.apache.http.impl.client.HttpClients;
|
|||||||
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
|
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
|
||||||
import org.apache.http.protocol.HttpContext;
|
import org.apache.http.protocol.HttpContext;
|
||||||
|
|
||||||
import java.io.IOException;
|
import me.chanjar.weixin.common.util.StringUtils;
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* httpclient 连接管理器
|
* httpclient 连接管理器
|
||||||
|
* @author kakotor
|
||||||
*/
|
*/
|
||||||
@NotThreadSafe
|
@NotThreadSafe
|
||||||
public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
|
public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
|
||||||
|
Loading…
Reference in New Issue
Block a user