类 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
  • 字段详细资料

    • httpMethod

      protected HttpMethod httpMethod
      Http Method
    • timestamp

      protected String timestamp
      Timestamp
    • nonce

      protected int nonce
      Nonce
    • extendHeaders

      protected com.google.common.collect.Multimap<String,​String> extendHeaders
  • 构造器详细资料

    • BaseRequest

      public BaseRequest​(HttpMethod httpMethod, int nonce)
  • 方法详细资料

    • requestUrl

      public abstract String requestUrl​(EndpointPropertiesProxy endpointPropertiesProxy)
      由子类返回需要的Url
      参数:
      endpointPropertiesProxy -
      返回:
    • addUrlSignatureParameters

      public abstract void addUrlSignatureParameters​(Map<String,​Object> mapToSign)
    • addQueryParams

      public abstract void addQueryParams​(com.google.common.collect.Multimap<String,​String> queryParams)
      由子类实现 添加查询参数
    • addBody

      public abstract void addBody​(Map<String,​Object> body)
      由子类实现 添加post内容体
    • setContentType

      protected void setContentType()
    • addExtendHeader

      protected void addExtendHeader​(String key, String value)
    • addOptionalQueryParam

      protected void addOptionalQueryParam​(com.google.common.collect.Multimap<String,​String> queryParams, String name, Object item)