mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 02:28:25 +08:00 
			
		
		
		
	clean code
This commit is contained in:
		| @ -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; | ||||
| */ | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang