public static class XmlResponsesSaxParser.CopyObjectResultHandler extends org.xml.sax.helpers.DefaultHandler implements ObjectExpirationResult, VIDResult
| 构造器和说明 |
|---|
CopyObjectResultHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
atTopLevel() |
void |
characters(char[] ch,
int start,
int length) |
protected void |
doEndElement(String uri,
String name,
String qName) |
protected void |
doStartElement(String uri,
String name,
String qName,
Attributes attrs) |
void |
endElement(String uri,
String name,
String qName) |
String |
getCrc64Ecma() |
String |
getDateStr()
get date header for this upload
|
String |
getErrorCode() |
String |
getErrorHostId() |
String |
getErrorMessage() |
String |
getErrorRequestId() |
String |
getETag() |
Date |
getExpirationTime()
Returns the expiration date of the object, or null if the object is not
configured to expire.
|
String |
getExpirationTimeRuleId()
Returns the bucket lifecycle configuration rule ID for the expiration of
this object.
|
Date |
getLastModified() |
String |
getRequestId()
get requestid for this upload
|
String |
getSSEAlgorithm()
Returns the server-side encryption algorithm if the object is encrypted
using COS-managed keys.
|
String |
getSSECustomerAlgorithm()
Returns the server-side encryption algorithm if the object is encrypted
using customer-provided keys.
|
String |
getSSECustomerKeyMd5()
Returns the base64-encoded MD5 digest of the encryption key for
server-side encryption, if the object is encrypted using
customer-provided keys.
|
protected String |
getText() |
String |
getVersionId() |
protected boolean |
in(String... path) |
boolean |
isErrorResponse() |
void |
setCrc64Ecma(String crc64Ecma) |
void |
setDateStr(String dateStr)
set date str for this upload
|
void |
setExpirationTime(Date expirationTime)
Sets the expiration date of the object.
|
void |
setExpirationTimeRuleId(String expirationTimeRuleId)
Sets the bucket lifecycle configuration rule ID for the expiration of
this object.
|
void |
setRequestId(String requestId)
set requestId for this upload
|
void |
setSSEAlgorithm(String serverSideEncryption)
Sets the server-side encryption algorithm for the response.
|
void |
setSSECustomerAlgorithm(String algorithm)
Sets the server-side encryption algorithm used when encrypting the object
with customer-provided keys.
|
void |
setSSECustomerKeyMd5(String md5Digest)
Sets the base64-encoded MD5 digest of the encryption key for server-side
encryption.
|
void |
setVersionId(String versionId) |
protected ServerSideEncryptionResult |
sseResult()
Used to get access to the specific server side encryption (SSE) result
from the subclass.
|
void |
startElement(String uri,
String name,
String qName,
Attributes attrs) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic void setDateStr(String dateStr)
VIDResultsetDateStr 在接口中 VIDResultdateStr - date str headerpublic String getDateStr()
VIDResultgetDateStr 在接口中 VIDResultpublic void setRequestId(String requestId)
VIDResultsetRequestId 在接口中 VIDResultrequestId - the requestId for the uploadpublic String getRequestId()
VIDResultgetRequestId 在接口中 VIDResultprotected ServerSideEncryptionResult sseResult()
public Date getLastModified()
public String getVersionId()
public void setVersionId(String versionId)
public String getCrc64Ecma()
public void setCrc64Ecma(String crc64Ecma)
public Date getExpirationTime()
ObjectExpirationResultgetExpirationTime 在接口中 ObjectExpirationResultpublic void setExpirationTime(Date expirationTime)
ObjectExpirationResultsetExpirationTime 在接口中 ObjectExpirationResultexpirationTime - The date the object will expire.public String getExpirationTimeRuleId()
ObjectExpirationResultgetExpirationTimeRuleId 在接口中 ObjectExpirationResultRule#getId()public void setExpirationTimeRuleId(String expirationTimeRuleId)
ObjectExpirationResultsetExpirationTimeRuleId 在接口中 ObjectExpirationResultexpirationTimeRuleId - The rule ID of this object's expiration configurationpublic String getETag()
public String getErrorCode()
public String getErrorHostId()
public String getErrorMessage()
public String getErrorRequestId()
public boolean isErrorResponse()
protected void doStartElement(String uri, String name, String qName, Attributes attrs)
public final String getSSEAlgorithm()
ServerSideEncryptionResultgetSSEAlgorithm 在接口中 ServerSideEncryptionResultpublic final void setSSEAlgorithm(String serverSideEncryption)
ServerSideEncryptionResultsetSSEAlgorithm 在接口中 ServerSideEncryptionResultserverSideEncryption - The server-side encryption algorithm for the response.public final String getSSECustomerAlgorithm()
ServerSideEncryptionResultpublic final void setSSECustomerAlgorithm(String algorithm)
ServerSideEncryptionResultsetSSECustomerAlgorithm 在接口中 ServerSideEncryptionResultalgorithm - The server-side encryption algorithm used when encrypting the
object with customer-provided keys.public final String getSSECustomerKeyMd5()
ServerSideEncryptionResultpublic final void setSSECustomerKeyMd5(String md5Digest)
ServerSideEncryptionResultsetSSECustomerKeyMd5 在接口中 ServerSideEncryptionResultmd5Digest - The base64-encoded MD5 digest of the encryption key for
server-side encryption.public final void startElement(String uri, String name, String qName, Attributes attrs)
startElement 在接口中 ContentHandlerstartElement 在类中 org.xml.sax.helpers.DefaultHandlerpublic final void endElement(String uri, String name, String qName)
endElement 在接口中 ContentHandlerendElement 在类中 org.xml.sax.helpers.DefaultHandlerpublic final void characters(char[] ch,
int start,
int length)
characters 在接口中 ContentHandlercharacters 在类中 org.xml.sax.helpers.DefaultHandlerprotected final String getText()
protected final boolean atTopLevel()
protected final boolean in(String... path)
path - Path to testCopyright © 2020. All rights reserved.