public abstract class SimpleGetRequestExecutor<H,P> extends Object implements RequestExecutor<String,String>
| 限定符和类型 | 字段和说明 | 
|---|---|
| protected RequestHttp<H,P> | requestHttp | 
| 构造器和说明 | 
|---|
| SimpleGetRequestExecutor(RequestHttp<H,P> requestHttp) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| static RequestExecutor<String,String> | create(RequestHttp<?,?> requestHttp) | 
| void | execute(String uri,
       String data,
       ResponseHandler<String> handler,
       WxType wxType)执行http请求. | 
| protected String | handleResponse(WxType wxType,
              String responseContent) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteprotected RequestHttp<H,P> requestHttp
public SimpleGetRequestExecutor(RequestHttp<H,P> requestHttp)
public void execute(String uri, String data, ResponseHandler<String> handler, WxType wxType) throws WxErrorException, IOException
RequestExecutorexecute 在接口中 RequestExecutor<String,String>uri - uridata - 数据handler - http响应处理器wxType - 微信模块类型WxErrorException - 自定义异常IOException - io异常public static RequestExecutor<String,String> create(RequestHttp<?,?> requestHttp)
protected String handleResponse(WxType wxType, String responseContent) throws WxErrorException
WxErrorExceptionCopyright © 2024. All rights reserved.