接口 IBaseService
- 所有已知子接口:
IImageXService,IVodService
- 所有已知实现类:
BaseServiceImpl,IamServiceImpl,ImageXServiceImpl,VodServiceImpl
public interface IBaseService
The interface Service.
-
方法概要
修饰符和类型 方法 说明 StringgetAccessKey()Gets access key.StringgetSecretKey()Gets secret key.StringgetSignUrl(String api, List<org.apache.http.NameValuePair> params)Gets sign url.RawResponsejson(String api, List<org.apache.http.NameValuePair> params, String body)Json raw response.RawResponsepost(String api, List<org.apache.http.NameValuePair> params, List<org.apache.http.NameValuePair> form)Post raw response.booleanput(String url, String filePath, Map<String,String> headers)Put boolean.booleanputData(String url, byte[] data, Map<String,String> headers)Put binary data.RawResponsequery(String api, List<org.apache.http.NameValuePair> params)Query raw response.voidsetAccessKey(String accessKey)Sets access key.voidsetClientNoReuse()Sets client no reuse.voidsetConnectionTimeout(int connectionTimeout)Sets connection timeout.voidsetHost(String host)Sets host.voidsetHttpClient(org.apache.http.client.HttpClient httpClient)Sets http client.voidsetRegion(String region)Sets region.voidsetScheme(String scheme)Sets scheme.voidsetSecretKey(String secretKey)Sets secret key.voidsetServiceInfo(ServiceInfo serviceInfo)Sets service info.voidsetSocketTimeout(int socketTimeout)Sets socket timeout.SecurityToken2signSts2(Policy inlinePolicy, long expire)Sign by sts2.
-
方法详细资料
-
setClientNoReuse
void setClientNoReuse()Sets client no reuse. -
getAccessKey
String getAccessKey()Gets access key.- 返回:
- the access key
-
setAccessKey
Sets access key.- 参数:
accessKey- the access key
-
getSecretKey
String getSecretKey()Gets secret key.- 返回:
- the secret key
-
setSecretKey
Sets secret key.- 参数:
secretKey- the secret key
-
setRegion
Sets region.- 参数:
region- the region
-
setHost
Sets host.- 参数:
host- the host
-
setScheme
Sets scheme.- 参数:
scheme- the scheme
-
setHttpClient
void setHttpClient(org.apache.http.client.HttpClient httpClient)Sets http client.- 参数:
httpClient- the http client
-
setServiceInfo
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
Query raw response.- 参数:
api- the apiparams- the params- 返回:
- the raw response
- 抛出:
Exception- the exception
-
getSignUrl
Gets sign url.- 参数:
api- the apiparams- the params- 返回:
- the sign url
- 抛出:
Exception- the exception
-
json
RawResponse json(String api, List<org.apache.http.NameValuePair> params, String body) throws ExceptionJson raw response.- 参数:
api- the apiparams- the paramsbody- 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 ExceptionPost raw response.- 参数:
api- the apiparams- the paramsform- the form- 返回:
- the raw response
- 抛出:
Exception- the exception
-
put
Put boolean.- 参数:
url- the urlfilePath- the file pathheaders- the headers- 返回:
- the boolean
- 抛出:
Exception- the exception
-
putData
Put binary data.- 参数:
url- target urldata- binary dataheaders- http headers- 返回:
- put status
- 抛出:
Exception- exception
-
signSts2
Sign by sts2.- 参数:
inlinePolicy- the Policyexpire- expire time- 返回:
- the sts2
- 抛出:
Exception- the exception
-