issue #29 http代理支持

This commit is contained in:
Daniel Qian
2014-11-03 21:29:40 +08:00
parent 3067468f71
commit 415ea95aeb
3 changed files with 21 additions and 1 deletions

View File

@@ -11,13 +11,23 @@ import me.chanjar.weixin.common.exception.WxErrorException;
/**
* http请求执行器
* @author Daniel Qian
*
* @param <T> 返回值类型
* @param <E> 请求参数类型
*/
public interface RequestExecutor<T, E> {
/**
*
* @param httpclient 传入的httpClient
* @param httpProxy http代理对象如果没有配置代理则为空
* @param uri uri
* @param data 数据
* @return
* @throws WxErrorException
* @throws ClientProtocolException
* @throws IOException
*/
public T execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, E data) throws WxErrorException, ClientProtocolException, IOException;
}