public class SdkRequest extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SdkRequest.RequestMethod
The enum Request method.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
compressData
The Compress data.
|
protected Map<String,String> |
headerMap
The Header map.
|
protected String |
requestBody
The Request body.
|
protected String |
requestMappingUrl
The Request mapping url.
|
protected SdkRequest.RequestMethod |
requestMethod
The Request method.
|
protected Map<String,String> |
requestParams
The Request params.
|
protected String |
saveFilePath
The Save file path.
|
protected Long |
timestamp
The Timestamp.
|
| 构造器和说明 |
|---|
SdkRequest()
Instantiates a new Sdk request.
|
SdkRequest(String requestMappingUrl)
Instantiates a new Sdk request.
|
SdkRequest(String requestMappingUrl,
SdkRequest.RequestMethod requestMethod)
Instantiates a new Sdk request.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHeader(String key,
String value)
Add header.
|
void |
addRequestParam(String key,
String value)
Add request param.
|
Map<String,String> |
getHeaderMap()
Gets header map.
|
String |
getRequestBody()
Gets request body.
|
String |
getRequestMappingUrl()
Gets request mapping url.
|
SdkRequest.RequestMethod |
getRequestMethod()
Gets request method.
|
Map<String,String> |
getRequestParams()
Gets request params.
|
String |
getSaveFilePath()
Gets save file path.
|
Long |
getTimestamp()
Gets timestamp.
|
boolean |
isCompressData()
Is compress data boolean.
|
void |
setCompressData(boolean compressData)
Sets compress data.
|
void |
setHeaderMap(Map<String,String> headerMap)
Sets header map.
|
void |
setRequestBody(String requestBody)
Sets request body.
|
void |
setRequestMappingUrl(String requestMappingUrl)
Sets request mapping url.
|
void |
setRequestMethod(SdkRequest.RequestMethod requestMethod)
Sets request method.
|
void |
setRequestParams(Map<String,String> requestParams)
Sets request params.
|
void |
setSaveFilePath(String saveFilePath)
Sets save file path.
|
void |
setTimestamp(Long timestamp)
Sets timestamp.
|
protected SdkRequest.RequestMethod requestMethod
protected String requestMappingUrl
protected Long timestamp
protected String requestBody
protected String saveFilePath
protected boolean compressData
public SdkRequest()
public SdkRequest(String requestMappingUrl)
requestMappingUrl - the request mapping urlpublic SdkRequest(String requestMappingUrl, SdkRequest.RequestMethod requestMethod)
requestMappingUrl - the request mapping urlrequestMethod - the request methodpublic SdkRequest.RequestMethod getRequestMethod()
public void setRequestMethod(SdkRequest.RequestMethod requestMethod)
requestMethod - the request methodpublic String getRequestMappingUrl()
public void setRequestMappingUrl(String requestMappingUrl)
requestMappingUrl - the request mapping urlpublic void setHeaderMap(Map<String,String> headerMap)
headerMap - the header mappublic void addHeader(String key, String value)
key - the keyvalue - the valuepublic Map<String,String> getRequestParams()
public void setRequestParams(Map<String,String> requestParams)
requestParams - the request paramspublic void addRequestParam(String key, String value)
key - the keyvalue - the valuepublic Long getTimestamp()
public void setTimestamp(Long timestamp)
timestamp - the timestamppublic String getRequestBody()
public void setRequestBody(String requestBody)
requestBody - the request bodypublic String getSaveFilePath()
public void setSaveFilePath(String saveFilePath)
saveFilePath - the save file pathpublic boolean isCompressData()
public void setCompressData(boolean compressData)
compressData - the compress dataCopyright © 2022. All rights reserved.