clean code

This commit is contained in:
Binary Wang 2018-06-09 23:59:27 +08:00
parent 499d12e0d3
commit b901f73107

View File

@ -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;
*/
}