T - 返回值类型E - 请求参数类型public interface RequestExecutor<T,E>
| 限定符和类型 | 方法和说明 |
|---|---|
T |
execute(String uri,
E data)
执行http请求.
|
void |
execute(String uri,
E data,
ResponseHandler<T> handler)
执行http请求.
|
T execute(String uri, E data) throws WxErrorException, IOException
uri - uridata - 数据WxErrorException - 自定义异常IOException - io异常void execute(String uri, E data, ResponseHandler<T> handler) throws WxErrorException, IOException
uri - uridata - 数据handler - http响应处理器WxErrorException - 自定义异常IOException - io异常Copyright © 2019. All rights reserved.