@Deprecated public abstract class AbstractRequestModel<T extends ResponseModel> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private SignatureComposer |
composer
已过时。
|
private int |
expires
已过时。
|
protected Map<String,List<File>> |
fileMap
已过时。
multipart 添加附件列表
|
private HttpMethodType |
httpMethod
已过时。
|
protected Object |
model
已过时。
multipart 添加文本参数
|
private String |
path
已过时。
|
private Map<String,String> |
queryParameters
已过时。
|
| 构造器和说明 |
|---|
AbstractRequestModel(String path)
已过时。
|
AbstractRequestModel(String path,
HttpMethodType httpMethod)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
expires()
已过时。
|
void |
expires(int expires)
已过时。
|
String |
generateUri()
已过时。
|
Map<String,List<File>> |
getFileMap()
已过时。
|
Object |
getModel()
已过时。
|
String |
getPath()
已过时。
|
abstract Class<T> |
getResponseClass()
已过时。
获取响应对象
|
HttpMethodType |
httpMethod()
已过时。
|
boolean |
isMultipartFormData()
已过时。
|
protected void |
putBodyParameter(String name,
Object value)
已过时。
配置请求体参数
|
protected void |
putQueryParameter(String name,
Object value)
已过时。
|
void |
setFileMap(Map<String,List<File>> fileMap)
已过时。
|
void |
setModel(Object model)
已过时。
|
void |
setPath(String path)
已过时。
|
void |
signRequest(Signer signer,
Credentials credentials,
String domain)
已过时。
|
private int expires
private String path
private HttpMethodType httpMethod
private SignatureComposer composer
protected Object model
public AbstractRequestModel(String path)
public AbstractRequestModel(String path, HttpMethodType httpMethod)
public void signRequest(Signer signer, Credentials credentials, String domain)
public void expires(int expires)
public int expires()
protected void putBodyParameter(String name, Object value)
name - 参数名value - 参数值public String getPath()
public void setPath(String path)
public String generateUri() throws URISyntaxException
public HttpMethodType httpMethod()
public boolean isMultipartFormData()
public Object getModel()
public void setModel(Object model)
Copyright © 2024. All rights reserved.