Class HttpClientTest
- java.lang.Object
-
- com.foxinmy.weixin4j.base.test.http.HttpClientTest
-
- Direct Known Subclasses:
Apache3HttpClientTest
,Apache4_1HttpClientTest
,Apache4_2HttpClientTest
,NettyHttpClientTest
,OkHttp2ClinetTest
,OkHttp3ClinetTest
,SimpleHttpTest
public abstract class HttpClientTest extends Object
HttpClient Test- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description HttpClientTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected HttpClient
createHttpClient()
protected HttpClient
createHttpClient(HttpParams params)
protected abstract HttpClientFactory
createHttpFactory()
protected HttpClient
createProxyAndSSLHttpClient()
protected HttpClient
createProxyHttpClient()
protected HttpClient
createSSLHttpClient()
void
getDefaultHttpClientFactoryTest()
void
getRequestTest()
void
httpsRequestTest()
void
postRequestTest()
void
proxyAndSSLRequestTest()
void
proxyRequestTest()
void
sslRequestTest()
-
-
-
Field Detail
-
PROXY
protected static final Proxy PROXY
-
-
Method Detail
-
createHttpFactory
protected abstract HttpClientFactory createHttpFactory()
-
createHttpClient
protected HttpClient createHttpClient()
-
createProxyHttpClient
protected HttpClient createProxyHttpClient()
-
createSSLHttpClient
protected HttpClient createSSLHttpClient()
-
createProxyAndSSLHttpClient
protected HttpClient createProxyAndSSLHttpClient()
-
createHttpClient
protected HttpClient createHttpClient(HttpParams params)
-
getDefaultHttpClientFactoryTest
public void getDefaultHttpClientFactoryTest()
-
getRequestTest
public void getRequestTest() throws HttpClientException
- Throws:
HttpClientException
-
postRequestTest
public void postRequestTest() throws HttpClientException
- Throws:
HttpClientException
-
httpsRequestTest
public void httpsRequestTest() throws HttpClientException
- Throws:
HttpClientException
-
proxyRequestTest
public void proxyRequestTest() throws HttpClientException
- Throws:
HttpClientException
-
sslRequestTest
public void sslRequestTest() throws HttpClientException
- Throws:
HttpClientException
-
proxyAndSSLRequestTest
public void proxyAndSSLRequestTest() throws HttpClientException
- Throws:
HttpClientException
-
-