public class GeneralRequest extends AbstractIccRequest<GeneralResponse>
bodyParameters, form, httpRequest| 构造器和说明 |
|---|
GeneralRequest(String url,
Method method)
构造器
|
GeneralRequest(String url,
Method method,
Boolean needAuth)
构造器
|
GeneralRequest(String url,
Method method,
String body)
构造器
|
| 限定符和类型 | 方法和说明 |
|---|---|
Class<GeneralResponse> |
getResponseClass()
返回结果对象
|
void |
setBody(String body) |
putBodyParameter, setParameterbody, execute, executeResponse, form, form, get, getBody, getBodyParameters, getForm, getHeader, getHttpRequest, getMethod, getUrl, header, isNeedAuth, main, post, setForm, setHeader, setHttpRequest, setMethod, setNeedAuth, setUrlpublic GeneralRequest(String url, Method method, Boolean needAuth) throws ClientException
url - 请求Urlmethod - 方法类型needAuth - 是否需要鉴权ClientException - 客户端异常public GeneralRequest(String url, Method method) throws ClientException
url - 请求Urlmethod - 方法类型ClientException - 客户端异常public GeneralRequest(String url, Method method, String body) throws ClientException
url - 请求Urlmethod - 方法类型body - 请求参数jsonClientException - 客户端异常public void setBody(String body)
setBody 在类中 IotHttpRequestpublic Class<GeneralResponse> getResponseClass()
AbstractIccRequestgetResponseClass 在类中 AbstractIccRequest<GeneralResponse>Copyright © 2023. All rights reserved.