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.