public final class HeadObjectRequest extends ObjectRequest
CosXmlRequest.OnRequestWeightListener
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
HeadObjectRequest(java.lang.String bucket,
java.lang.String cosPath) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
RequestBodySerializer |
getRequestBody()
获取请求体
|
void |
setIfModifiedSince(java.lang.String ifModifiedSince)
设置If-Modified-Since头部
当 Object 在指定时间后被修改,则返回对应 Object 的 meta 信息,否则返回 304。
|
void |
setVersionId(java.lang.String versionId)
设置版本ID
|
checkParameters, getContentType, getCosPath, getPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getQueryString, getRegion, getRequestHeaders, getRequestHost, getRequestURL, getSignSourceProvider, getSTSCredentialScope, getWeight, headersHasUnsafeNonAscii, isNeedMD5, isSignInUrl, isSupportAccelerate, isSupportAccelerate, setNeedMD5, setOnRequestWeightListener, setQueryEncodedString, setQueryParameters, setRegion, setRequestHeaders, setRequestHeaders, setRequestHeaders, setRequestURL, setSign, setSign, setSign, setSign, setSign, setSignInUrl, setSignKeyTime, setSignParamsAndHeaders, setSignSourceProvider, setTask, setTaskStateListener, xmlBuilder
public HeadObjectRequest(java.lang.String bucket, java.lang.String cosPath)
public void setVersionId(java.lang.String versionId)
versionId
- 版本idpublic void setIfModifiedSince(java.lang.String ifModifiedSince)
设置If-Modified-Since头部
当 Object 在指定时间后被修改,则返回对应 Object 的 meta 信息,否则返回 304。
ifModifiedSince
- If-Modified-Since头部public java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
public RequestBodySerializer getRequestBody()
CosXmlRequest
getRequestBody
在类中 CosXmlRequest