接口 IBaseService

所有已知子接口:
IImageXService, IVodService
所有已知实现类:
BaseServiceImpl, IamServiceImpl, ImageXServiceImpl, VodServiceImpl

public interface IBaseService
The interface Service.
  • 方法详细资料

    • setClientNoReuse

      void setClientNoReuse()
      Sets client no reuse.
    • getAccessKey

      String getAccessKey()
      Gets access key.
      返回:
      the access key
    • setAccessKey

      void setAccessKey​(String accessKey)
      Sets access key.
      参数:
      accessKey - the access key
    • getSecretKey

      String getSecretKey()
      Gets secret key.
      返回:
      the secret key
    • setSecretKey

      void setSecretKey​(String secretKey)
      Sets secret key.
      参数:
      secretKey - the secret key
    • setRegion

      void setRegion​(String region)
      Sets region.
      参数:
      region - the region
    • setHost

      void setHost​(String host)
      Sets host.
      参数:
      host - the host
    • setScheme

      void setScheme​(String scheme)
      Sets scheme.
      参数:
      scheme - the scheme
    • setHttpClient

      void setHttpClient​(org.apache.http.client.HttpClient httpClient)
      Sets http client.
      参数:
      httpClient - the http client
    • setServiceInfo

      void setServiceInfo​(ServiceInfo serviceInfo)
      Sets service info.
      参数:
      serviceInfo - the service info
    • setSocketTimeout

      void setSocketTimeout​(int socketTimeout)
      Sets socket timeout.
      参数:
      socketTimeout - the socket timeout
    • setConnectionTimeout

      void setConnectionTimeout​(int connectionTimeout)
      Sets connection timeout.
      参数:
      connectionTimeout - the connection timeout
    • query

      RawResponse query​(String api, List<org.apache.http.NameValuePair> params) throws Exception
      Query raw response.
      参数:
      api - the api
      params - the params
      返回:
      the raw response
      抛出:
      Exception - the exception
    • getSignUrl

      String getSignUrl​(String api, List<org.apache.http.NameValuePair> params) throws Exception
      Gets sign url.
      参数:
      api - the api
      params - the params
      返回:
      the sign url
      抛出:
      Exception - the exception
    • json

      RawResponse json​(String api, List<org.apache.http.NameValuePair> params, String body) throws Exception
      Json raw response.
      参数:
      api - the api
      params - the params
      body - the body
      返回:
      the raw response
      抛出:
      Exception - the exception
    • post

      RawResponse post​(String api, List<org.apache.http.NameValuePair> params, List<org.apache.http.NameValuePair> form) throws Exception
      Post raw response.
      参数:
      api - the api
      params - the params
      form - the form
      返回:
      the raw response
      抛出:
      Exception - the exception
    • put

      boolean put​(String url, String filePath, Map<String,​String> headers) throws Exception
      Put boolean.
      参数:
      url - the url
      filePath - the file path
      headers - the headers
      返回:
      the boolean
      抛出:
      Exception - the exception
    • putData

      boolean putData​(String url, byte[] data, Map<String,​String> headers) throws Exception
      Put binary data.
      参数:
      url - target url
      data - binary data
      headers - http headers
      返回:
      put status
      抛出:
      Exception - exception
    • signSts2

      SecurityToken2 signSts2​(Policy inlinePolicy, long expire) throws Exception
      Sign by sts2.
      参数:
      inlinePolicy - the Policy
      expire - expire time
      返回:
      the sts2
      抛出:
      Exception - the exception