public class GeneralRequest extends AbstractIccRequest<GeneralResponse>
bodyParameters, form, httpRequest| 构造器和说明 |
|---|
GeneralRequest(String url,
com.dahuatech.hutool.http.Method method)
构造器
|
GeneralRequest(String url,
com.dahuatech.hutool.http.Method method,
Boolean needAuth)
构造器
|
GeneralRequest(String url,
com.dahuatech.hutool.http.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, com.dahuatech.hutool.http.Method method, Boolean needAuth) throws com.dahuatech.icc.exception.ClientException
url - 请求Urlmethod - 方法类型needAuth - 是否需要鉴权com.dahuatech.icc.exception.ClientException - 客户端异常public GeneralRequest(String url, com.dahuatech.hutool.http.Method method) throws com.dahuatech.icc.exception.ClientException
url - 请求Urlmethod - 方法类型com.dahuatech.icc.exception.ClientException - 客户端异常public void setBody(String body)
setBody 在类中 IccHttpHttpRequestpublic Class<GeneralResponse> getResponseClass()
AbstractIccRequestgetResponseClass 在类中 AbstractIccRequest<GeneralResponse>Copyright © 2023. All rights reserved.