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