Package com.foxinmy.weixin4j.http
Class HttpParams
- java.lang.Object
-
- com.foxinmy.weixin4j.http.HttpParams
-
public final class HttpParams extends Object
Http请求参数- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description HttpParams()
connectTimeout = 15000,readTimeout=20000,maxConnection=100,maxConnectionPerHost=32HttpParams(int connectTimeout, int readTimeout, int maxConnections, int maxConnectionsPerHost)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpParams
copy(HttpParams params)
int
getConnectTimeout()
HostnameVerifier
getHostnameVerifier()
int
getMaxConnections()
int
getMaxConnectionsPerHost()
Proxy
getProxy()
int
getReadTimeout()
SSLContext
getSSLContext()
HttpParams
setHostnameVerifier(HostnameVerifier hostnameVerifier)
HttpParams
setProxy(Proxy proxy)
HttpParams
setSSLContext(SSLContext sslContext)
String
toString()
-
-
-
Method Detail
-
getConnectTimeout
public int getConnectTimeout()
-
getReadTimeout
public int getReadTimeout()
-
getMaxConnections
public int getMaxConnections()
-
getMaxConnectionsPerHost
public int getMaxConnectionsPerHost()
-
getProxy
public Proxy getProxy()
-
setProxy
public HttpParams setProxy(Proxy proxy)
-
getSSLContext
public SSLContext getSSLContext()
-
setSSLContext
public HttpParams setSSLContext(SSLContext sslContext)
-
getHostnameVerifier
public HostnameVerifier getHostnameVerifier()
-
setHostnameVerifier
public HttpParams setHostnameVerifier(HostnameVerifier hostnameVerifier)
-
copy
public static HttpParams copy(HttpParams params)
-
-