类 BaseRequest
java.lang.Object
net.linksfield.cube.partnersdk.domain.BaseRequest
- 直接已知子类:
ActivateAsync,AddBundle,AsyncResult,BaseRequestV2,GetSimUsage,GetSimUsageA1,GetSimUsageUwp,OrderDailyUsage,Orders,QueryBundles,QueryBundlesAvailable,Refunds,ResetAsync,ResumeAsync,SendSms,SimCdr,SimMoList,SimStatus,Suspend,SuspendAsync,SwitchBundle,SwitchBundleForOta
public abstract class BaseRequest extends Object
-
字段概要
字段 修饰符和类型 字段 说明 protected com.google.common.collect.Multimap<String,String>extendHeadersprotected HttpMethodhttpMethodHttp Methodprotected intnonceNonceprotected StringtimestampTimestamp -
构造器概要
构造器 构造器 说明 BaseRequest(HttpMethod httpMethod, int nonce) -
方法概要
修饰符和类型 方法 说明 abstract voidaddBody(Map<String,Object> body)由子类实现 添加post内容体protected voidaddExtendHeader(String key, String value)protected voidaddOptionalQueryParam(com.google.common.collect.Multimap<String,String> queryParams, String name, Object item)abstract voidaddQueryParams(com.google.common.collect.Multimap<String,String> queryParams)由子类实现 添加查询参数abstract voidaddUrlSignatureParameters(Map<String,Object> mapToSign)abstract StringrequestUrl(EndpointPropertiesProxy endpointPropertiesProxy)由子类返回需要的Urlprotected voidsetContentType()
-
字段详细资料
-
httpMethod
Http Method -
timestamp
Timestamp -
nonce
protected int nonceNonce -
extendHeaders
-
-
构造器详细资料
-
BaseRequest
-
-
方法详细资料
-
requestUrl
由子类返回需要的Url- 参数:
endpointPropertiesProxy-- 返回:
-
addUrlSignatureParameters
-
addQueryParams
public abstract void addQueryParams(com.google.common.collect.Multimap<String,String> queryParams)由子类实现 添加查询参数 -
addBody
由子类实现 添加post内容体 -
setContentType
protected void setContentType() -
addExtendHeader
-
addOptionalQueryParam
-