public interface IBaseService
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAccessKey()
Gets access key.
|
String |
getSecretKey()
Gets secret key.
|
String |
getSignUrl(String api,
Map<String,String> params)
Gets sign url.
|
RawResponse |
json(String api,
Map<String,String> params,
String body)
Json raw response.
|
RawResponse |
post(String api,
Map<String,String> params,
Map<String,String> form)
Post raw response.
|
boolean |
put(String url,
String filePath,
Map<String,String> headers)
Put boolean.
|
RawResponse |
query(String api,
Map<String,String> params)
Query raw response.
|
void |
setAccessKey(String accessKey)
Sets access key.
|
void |
setClientNoReuse()
Sets client no reuse.
|
void |
setConnectionTimeout(int connectionTimeout)
Sets connection timeout.
|
void |
setHttpClient(org.apache.http.client.HttpClient httpClient)
Sets http client.
|
void |
setRegion(String region)
Sets region.
|
void |
setSecretKey(String secretKey)
Sets secret key.
|
void |
setServiceInfo(ServiceInfo serviceInfo)
Sets service info.
|
void |
setSocketTimeout(int socketTimeout)
Sets socket timeout.
|
void setClientNoReuse()
String getAccessKey()
void setAccessKey(String accessKey)
accessKey - the access keyString getSecretKey()
void setSecretKey(String secretKey)
secretKey - the secret keyvoid setRegion(String region)
region - the regionvoid setHttpClient(org.apache.http.client.HttpClient httpClient)
httpClient - the http clientvoid setServiceInfo(ServiceInfo serviceInfo)
serviceInfo - the service infovoid setSocketTimeout(int socketTimeout)
socketTimeout - the socket timeoutvoid setConnectionTimeout(int connectionTimeout)
connectionTimeout - the connection timeoutRawResponse query(String api, Map<String,String> params) throws Exception
api - the apiparams - the paramsException - the exceptionString getSignUrl(String api, Map<String,String> params) throws Exception
api - the apiparams - the paramsException - the exceptionRawResponse json(String api, Map<String,String> params, String body) throws Exception
api - the apiparams - the paramsbody - the bodyException - the exceptionRawResponse post(String api, Map<String,String> params, Map<String,String> form) throws Exception
api - the apiparams - the paramsform - the formException - the exceptionCopyright © 2019. All rights reserved.