mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-05 05:07:46 +08:00
clean code
This commit is contained in:
parent
499d12e0d3
commit
b901f73107
@ -9,51 +9,13 @@ import java.io.IOException;
|
||||
*
|
||||
* @param <T> 返回值类型
|
||||
* @param <E> 请求参数类型
|
||||
* @author Daniel Qian
|
||||
*/
|
||||
public interface RequestExecutor<T, E> {
|
||||
|
||||
/**
|
||||
* @param uri uri
|
||||
* @param data 数据
|
||||
* @throws WxErrorException
|
||||
* @throws IOException
|
||||
*/
|
||||
T execute(String uri, E data) throws WxErrorException, IOException;
|
||||
|
||||
/**
|
||||
* apache-http实现方式
|
||||
* @param httpclient
|
||||
* @param httpProxy
|
||||
* @param uri
|
||||
* @param data
|
||||
* @return
|
||||
* @throws WxErrorException
|
||||
* @throws IOException
|
||||
*//*
|
||||
T executeApache(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, E data) throws WxErrorException, IOException;
|
||||
|
||||
*//**
|
||||
* jodd-http实现方式
|
||||
* @param provider
|
||||
* @param proxyInfo
|
||||
* @param uri
|
||||
* @param data
|
||||
* @return
|
||||
* @throws WxErrorException
|
||||
* @throws IOException
|
||||
*//*
|
||||
T executeJodd(HttpConnectionProvider provider, ProxyInfo proxyInfo, String uri, E data) throws WxErrorException, IOException;
|
||||
|
||||
|
||||
*//** okhttp实现方式
|
||||
* @param pool
|
||||
* @param proxyInfo
|
||||
* @param uri
|
||||
* @param data
|
||||
* @return
|
||||
* @throws WxErrorException
|
||||
* @throws IOException
|
||||
*//*
|
||||
T executeOkhttp(ConnectionPool pool, final OkHttpProxyInfo proxyInfo, String uri, E data) throws WxErrorException, IOException;
|
||||
*/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user