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, warning
public void setDateStr(String dateStr)
VIDResult
setDateStr
在接口中 VIDResult
dateStr
- date str headerpublic String getDateStr()
VIDResult
getDateStr
在接口中 VIDResult
public void setRequestId(String requestId)
VIDResult
setRequestId
在接口中 VIDResult
requestId
- the requestId for the uploadpublic String getRequestId()
VIDResult
getRequestId
在接口中 VIDResult
protected ServerSideEncryptionResult sseResult()
public Date getLastModified()
public String getVersionId()
public void setVersionId(String versionId)
public String getCrc64Ecma()
public void setCrc64Ecma(String crc64Ecma)
public Date getExpirationTime()
ObjectExpirationResult
getExpirationTime
在接口中 ObjectExpirationResult
public void setExpirationTime(Date expirationTime)
ObjectExpirationResult
setExpirationTime
在接口中 ObjectExpirationResult
expirationTime
- The date the object will expire.public String getExpirationTimeRuleId()
ObjectExpirationResult
getExpirationTimeRuleId
在接口中 ObjectExpirationResult
Rule#getId()
public void setExpirationTimeRuleId(String expirationTimeRuleId)
ObjectExpirationResult
setExpirationTimeRuleId
在接口中 ObjectExpirationResult
expirationTimeRuleId
- 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()
ServerSideEncryptionResult
getSSEAlgorithm
在接口中 ServerSideEncryptionResult
public final void setSSEAlgorithm(String serverSideEncryption)
ServerSideEncryptionResult
setSSEAlgorithm
在接口中 ServerSideEncryptionResult
serverSideEncryption
- The server-side encryption algorithm for the response.public final String getSSECustomerAlgorithm()
ServerSideEncryptionResult
public final void setSSECustomerAlgorithm(String algorithm)
ServerSideEncryptionResult
setSSECustomerAlgorithm
在接口中 ServerSideEncryptionResult
algorithm
- The server-side encryption algorithm used when encrypting the
object with customer-provided keys.public final String getSSECustomerKeyMd5()
ServerSideEncryptionResult
public final void setSSECustomerKeyMd5(String md5Digest)
ServerSideEncryptionResult
setSSECustomerKeyMd5
在接口中 ServerSideEncryptionResult
md5Digest
- 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
在接口中 ContentHandler
startElement
在类中 org.xml.sax.helpers.DefaultHandler
public final void endElement(String uri, String name, String qName)
endElement
在接口中 ContentHandler
endElement
在类中 org.xml.sax.helpers.DefaultHandler
public final void characters(char[] ch, int start, int length)
characters
在接口中 ContentHandler
characters
在类中 org.xml.sax.helpers.DefaultHandler
protected final String getText()
protected final boolean atTopLevel()
protected final boolean in(String... path)
path
- Path to testCopyright © 2020. All rights reserved.