public abstract class AcsRequest<T extends AcsResponse> extends HttpRequest
| 限定符和类型 | 字段和说明 |
|---|---|
protected ISignatureComposer |
composer |
HashMap<String,String> |
productEndpointMap |
String |
productEndpointRegional |
String |
productNetwork |
String |
productSuffix |
protected String |
strToSign |
connectTimeout, CONTENT_LENGTH, CONTENT_MD5, CONTENT_TYPE, encoding, headers, httpContent, httpContentType, ignoreSSLCerts, readTimeout| 构造器和说明 |
|---|
AcsRequest(String product) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendUserAgent(String key,
String value) |
abstract String |
composeUrl(String endpoint,
Map<String,String> queries) |
static String |
concatQueryString(Map<String,String> parameters) |
FormatType |
getAcceptFormat()
已过时。
: Use getSysAcceptFormat instead of this
|
String |
getActionName()
已过时。
: Use getSysActionName instead of this
|
Map<String,String> |
getBodyParameters()
已过时。
: Use getSysBodyParameters instead of this
|
Map<String,String> |
getDomainParameters()
已过时。
: Use getSysDomainParameters instead of this
|
String |
getEndpointType()
已过时。
: Use getSysEndpointType instead of this
|
String |
getLocationProduct()
已过时。
: Use getSysLocationProduct instead of this
|
String |
getProduct()
已过时。
: Use getSysProduct instead of this
|
ProductDomain |
getProductDomain()
已过时。
: Use getSysProductDomain instead of this
|
ProtocolType |
getProtocol()
已过时。
: Use getSysProtocol instead of this
|
Map<String,String> |
getQueryParameters()
已过时。
: Use getSysQueryParameters instead of this
|
String |
getRegionId()
已过时。
: Use getSysRegionId instead of this
|
abstract Class<T> |
getResponseClass() |
String |
getSecurityToken()
已过时。
: Use getSysSecurityToken instead of this
|
FormatType |
getSysAcceptFormat() |
String |
getSysActionName() |
Map<String,String> |
getSysBodyParameters() |
Map<String,String> |
getSysDomainParameters() |
String |
getSysEndpointType() |
String |
getSysLocationProduct() |
String |
getSysProduct() |
ProductDomain |
getSysProductDomain() |
ProtocolType |
getSysProtocol() |
Map<String,String> |
getSysQueryParameters() |
String |
getSysRegionId() |
String |
getSysSecurityToken() |
UserAgentConfig |
getSysUserAgentConfig() |
String |
getSysVersion() |
String |
getVersion()
已过时。
: Use getSysVersion instead of this
|
protected void |
putBodyParameter(String name,
Object value) |
protected void |
putDomainParameter(String name,
Object value) |
protected void |
putDomainParameter(String name,
String value) |
<K> void |
putQueryParameter(String name,
K value) |
protected void |
putQueryParameter(String name,
String value) |
void |
setAcceptFormat(FormatType acceptFormat)
已过时。
: Use setSysAcceptFormat instead of this
|
void |
setActionName(String actionName)
已过时。
: Use setSysActionName instead of this
|
void |
setEndpoint(String endpoint)
已过时。
: Use setSysEndpoint instead of this
|
void |
setEndpointType(String endpointType)
已过时。
: Use setSysEndpointType instead of this
|
void |
setLocationProduct(String locationProduct)
已过时。
: Use setSysLocationProduct instead of this
|
protected void |
setParameter(Map<String,String> map,
String name,
Object value) |
void |
setProductDomain(ProductDomain productDomain)
已过时。
: Use setSysProductDomain instead of this
|
void |
setProtocol(ProtocolType protocol)
已过时。
: Use setSysProtocol instead of this
|
void |
setRegionId(String regionId)
已过时。
: Use setSysRegionId instead of this
|
void |
setSecurityToken(String securityToken)
已过时。
: Use setSysSecurityToken instead of this
|
void |
setSysAcceptFormat(FormatType acceptFormat) |
void |
setSysActionName(String actionName) |
void |
setSysEndpoint(String endpoint) |
void |
setSysEndpointType(String endpointType) |
void |
setSysLocationProduct(String locationProduct) |
void |
setSysProductDomain(ProductDomain productDomain) |
void |
setSysProtocol(ProtocolType protocol) |
void |
setSysRegionId(String regionId) |
void |
setSysSecurityToken(String securityToken) |
void |
setSysVersion(String version) |
void |
setVersion(String version)
已过时。
: Use setSysVersion instead of this
|
abstract HttpRequest |
signRequest(Signer signer,
AlibabaCloudCredentials credentials,
FormatType format,
ProductDomain domain) |
getConnectTimeout, getContentTypeValue, getEncoding, getHeaders, getHeaderValue, getHttpContent, getHttpContentString, getHttpContentType, getKeyManagers, getMethod, getReadTimeout, getSysConnectTimeout, getSysEncoding, getSysHeaders, getSysMethod, getSysReadTimeout, getSysUrl, getUrl, getX509TrustManagers, isIgnoreSSLCerts, putHeaderParameter, setConnectTimeout, setEncoding, setHttpContent, setHttpContentType, setIgnoreSSLCerts, setKeyManagers, setMethod, setReadTimeout, setSysConnectTimeout, setSysEncoding, setSysMethod, setSysReadTimeout, setSysUrl, setUrl, setX509TrustManagersprotected ISignatureComposer composer
protected String strToSign
public String productEndpointRegional
public String productNetwork
public String productSuffix
public AcsRequest(String product)
public static String concatQueryString(Map<String,String> parameters) throws UnsupportedEncodingException
@Deprecated public void setEndpoint(String endpoint)
@Deprecated public String getVersion()
@Deprecated public void setVersion(String version)
@Deprecated public String getProduct()
@Deprecated public String getActionName()
@Deprecated public void setActionName(String actionName)
@Deprecated public String getRegionId()
@Deprecated public void setRegionId(String regionId)
@Deprecated public String getSecurityToken()
@Deprecated public void setSecurityToken(String securityToken)
@Deprecated public FormatType getAcceptFormat()
@Deprecated public void setAcceptFormat(FormatType acceptFormat)
@Deprecated public ProtocolType getProtocol()
@Deprecated public void setProtocol(ProtocolType protocol)
@Deprecated public Map<String,String> getQueryParameters()
public <K> void putQueryParameter(String name, K value)
@Deprecated public Map<String,String> getDomainParameters()
@Deprecated public Map<String,String> getBodyParameters()
@Deprecated public String getLocationProduct()
@Deprecated public void setLocationProduct(String locationProduct)
@Deprecated public String getEndpointType()
@Deprecated public void setEndpointType(String endpointType)
@Deprecated public ProductDomain getProductDomain()
@Deprecated public void setProductDomain(ProductDomain productDomain)
public abstract HttpRequest signRequest(Signer signer, AlibabaCloudCredentials credentials, FormatType format, ProductDomain domain) throws InvalidKeyException, IllegalStateException, UnsupportedEncodingException, NoSuchAlgorithmException
public abstract String composeUrl(String endpoint, Map<String,String> queries) throws UnsupportedEncodingException
public String getSysVersion()
public void setSysVersion(String version)
public String getSysProduct()
public String getSysActionName()
public void setSysActionName(String actionName)
public String getSysRegionId()
public void setSysRegionId(String regionId)
public String getSysSecurityToken()
public void setSysSecurityToken(String securityToken)
public FormatType getSysAcceptFormat()
public void setSysAcceptFormat(FormatType acceptFormat)
public ProtocolType getSysProtocol()
public void setSysProtocol(ProtocolType protocol)
public void setSysEndpoint(String endpoint)
public String getSysLocationProduct()
public void setSysLocationProduct(String locationProduct)
public String getSysEndpointType()
public void setSysEndpointType(String endpointType)
public ProductDomain getSysProductDomain()
public void setSysProductDomain(ProductDomain productDomain)
public UserAgentConfig getSysUserAgentConfig()
Copyright © 2020. All rights reserved.