com.aliyuncs
类 AcsRequest<T extends AcsResponse>
java.lang.Object
com.aliyuncs.http.HttpRequest
com.aliyuncs.AcsRequest<T>
- 直接已知子类:
- RoaAcsRequest, RpcAcsRequest
public abstract class AcsRequest<T extends AcsResponse>
- extends HttpRequest
方法摘要 |
abstract String |
composeUrl(String endpoint,
Map<String,String> queries)
|
static String |
concatQueryString(Map<String,String> parameters)
|
FormatType |
getAcceptFormat()
|
String |
getActionName()
|
Map<String,String> |
getDomainParameters()
|
String |
getEndpointType()
|
String |
getLocationProduct()
|
String |
getProduct()
|
ProtocolType |
getProtocol()
|
Map<String,String> |
getQueryParameters()
|
String |
getRegionId()
|
abstract Class<T> |
getResponseClass()
|
String |
getSecurityToken()
|
String |
getVersion()
|
protected void |
putDomainParameter(String name,
Object value)
|
protected void |
putDomainParameter(String name,
String value)
|
|
putQueryParameter(String name,
K value)
|
protected void |
putQueryParameter(String name,
String value)
|
void |
setAcceptFormat(FormatType acceptFormat)
|
void |
setActionName(String actionName)
|
void |
setEndpointType(String endpointType)
|
void |
setLocationProduct(String locationProduct)
|
protected
|
setParameter(Map<String,String> map,
String name,
K value)
|
void |
setProtocol(ProtocolType protocol)
|
void |
setRegionId(String regionId)
|
void |
setSecurityToken(String securityToken)
|
void |
setVersion(String version)
|
abstract HttpRequest |
signRequest(ISigner signer,
Credential credential,
FormatType format,
ProductDomain domain)
|
从类 com.aliyuncs.http.HttpRequest 继承的方法 |
getConnectTimeout, getContent, getContentType, getEncoding, getHeaders, getHeaderValue, getHttpConnection, getMethod, getReadTimeout, getUrl, putHeaderParameter, setConnectTimeout, setContent, setContentType, setEncoding, setMethod, setReadTimeout, setUrl |
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
composer
protected ISignatureComposer composer
AcsRequest
public AcsRequest(String product)
AcsRequest
public AcsRequest(String product,
String version)
getLocationProduct
public String getLocationProduct()
setLocationProduct
public void setLocationProduct(String locationProduct)
getEndpointType
public String getEndpointType()
setEndpointType
public void setEndpointType(String endpointType)
getActionName
public String getActionName()
setActionName
public void setActionName(String actionName)
getProduct
public String getProduct()
getProtocol
public ProtocolType getProtocol()
setProtocol
public void setProtocol(ProtocolType protocol)
getQueryParameters
public Map<String,String> getQueryParameters()
putQueryParameter
public <K> void putQueryParameter(String name,
K value)
putQueryParameter
protected void putQueryParameter(String name,
String value)
getDomainParameters
public Map<String,String> getDomainParameters()
putDomainParameter
protected void putDomainParameter(String name,
Object value)
putDomainParameter
protected void putDomainParameter(String name,
String value)
setParameter
protected <K> void setParameter(Map<String,String> map,
String name,
K value)
getVersion
public String getVersion()
setVersion
public void setVersion(String version)
getAcceptFormat
public FormatType getAcceptFormat()
setAcceptFormat
public void setAcceptFormat(FormatType acceptFormat)
getRegionId
public String getRegionId()
setRegionId
public void setRegionId(String regionId)
getSecurityToken
public String getSecurityToken()
setSecurityToken
public void setSecurityToken(String securityToken)
concatQueryString
public static String concatQueryString(Map<String,String> parameters)
throws UnsupportedEncodingException
- 抛出:
UnsupportedEncodingException
signRequest
public abstract HttpRequest signRequest(ISigner signer,
Credential credential,
FormatType format,
ProductDomain domain)
throws InvalidKeyException,
IllegalStateException,
UnsupportedEncodingException,
NoSuchAlgorithmException
- 抛出:
InvalidKeyException
IllegalStateException
UnsupportedEncodingException
NoSuchAlgorithmException
composeUrl
public abstract String composeUrl(String endpoint,
Map<String,String> queries)
throws UnsupportedEncodingException
- 抛出:
UnsupportedEncodingException
getResponseClass
public abstract Class<T> getResponseClass()
Copyright © 2017. All Rights Reserved.