public static class XmlResponsesSaxParser.CopyObjectResultHandler extends org.xml.sax.helpers.DefaultHandler implements ObjectExpirationResult, VIDResult
| Constructor and Description |
|---|
CopyObjectResultHandler() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface VIDResultdateStr - date str headerpublic String getDateStr()
VIDResultgetDateStr in interface VIDResultpublic void setRequestId(String requestId)
VIDResultsetRequestId in interface VIDResultrequestId - the requestId for the uploadpublic String getRequestId()
VIDResultgetRequestId in interface 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 in interface ObjectExpirationResultpublic void setExpirationTime(Date expirationTime)
ObjectExpirationResultsetExpirationTime in interface ObjectExpirationResultexpirationTime - The date the object will expire.public String getExpirationTimeRuleId()
ObjectExpirationResultgetExpirationTimeRuleId in interface ObjectExpirationResultRule#getId()public void setExpirationTimeRuleId(String expirationTimeRuleId)
ObjectExpirationResultsetExpirationTimeRuleId in interface 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 in interface ServerSideEncryptionResultpublic final void setSSEAlgorithm(String serverSideEncryption)
ServerSideEncryptionResultsetSSEAlgorithm in interface ServerSideEncryptionResultserverSideEncryption - The server-side encryption algorithm for the response.public final String getSSECustomerAlgorithm()
ServerSideEncryptionResultgetSSECustomerAlgorithm in interface ServerSideEncryptionResultpublic final void setSSECustomerAlgorithm(String algorithm)
ServerSideEncryptionResultsetSSECustomerAlgorithm in interface ServerSideEncryptionResultalgorithm - The server-side encryption algorithm used when encrypting the
object with customer-provided keys.public final String getSSECustomerKeyMd5()
ServerSideEncryptionResultgetSSECustomerKeyMd5 in interface ServerSideEncryptionResultpublic final void setSSECustomerKeyMd5(String md5Digest)
ServerSideEncryptionResultsetSSECustomerKeyMd5 in interface 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 in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerpublic final void endElement(String uri, String name, String qName)
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerpublic final void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerprotected final String getText()
protected final boolean atTopLevel()
protected final boolean in(String... path)
path - Path to testCopyright © 2023. All rights reserved.