public static class XmlResponsesSaxParser.CopyObjectResultHandler extends AbstractSSEHandler implements ObjectExpirationResult, S3RequesterChargedResult, S3VersionResult
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorCode |
private java.lang.String |
errorHostId |
private java.lang.String |
errorMessage |
private java.lang.String |
errorRequestId |
private boolean |
receivedErrorResponse |
private CopyObjectResult |
result |
Constructor and Description |
---|
CopyObjectResultHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doEndElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName) |
protected void |
doStartElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes attrs) |
java.lang.String |
getErrorCode() |
java.lang.String |
getErrorHostId() |
java.lang.String |
getErrorMessage() |
java.lang.String |
getErrorRequestId() |
java.lang.String |
getETag() |
java.util.Date |
getExpirationTime()
Returns the expiration date of the object, or null if the object is not
configured to expire.
|
java.lang.String |
getExpirationTimeRuleId()
Returns the bucket lifecycle configuration rule ID for the expiration of
this object.
|
java.util.Date |
getLastModified() |
java.lang.String |
getVersionId()
Gets the version ID of the newly copied object.
|
boolean |
isErrorResponse() |
boolean |
isRequesterCharged()
Returns true if the user has enabled Requester Pays option when
conducting this operation from Requester Pays Bucket; else false.
|
void |
setExpirationTime(java.util.Date expirationTime)
Sets the expiration date of the object.
|
void |
setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
Sets the bucket lifecycle configuration rule ID for the expiration of
this object.
|
void |
setRequesterCharged(boolean isRequesterCharged)
Used for conducting this operation from a Requester Pays Bucket.
|
void |
setVersionId(java.lang.String versionId)
Sets the version ID of the newly copied object.
|
protected ServerSideEncryptionResult |
sseResult()
Used to get access to the specific server side encryption (SSE) result
from the subclass.
|
getSSEAlgorithm, getSSECustomerAlgorithm, getSSECustomerKeyMd5, setSSEAlgorithm, setSSECustomerAlgorithm, setSSECustomerKeyMd5
atTopLevel, characters, endElement, getText, in, startElement
private final CopyObjectResult result
private java.lang.String errorCode
private java.lang.String errorMessage
private java.lang.String errorRequestId
private java.lang.String errorHostId
private boolean receivedErrorResponse
protected ServerSideEncryptionResult sseResult()
AbstractSSEHandler
sseResult
in class AbstractSSEHandler
public java.util.Date getLastModified()
public java.lang.String getVersionId()
S3VersionResult
getVersionId
in interface S3VersionResult
CopyObjectResult.setVersionId(String)
,
CompleteMultipartUploadResult.getVersionId()
,
PutObjectResult.getVersionId()
public void setVersionId(java.lang.String versionId)
S3VersionResult
setVersionId
in interface S3VersionResult
versionId
- The version ID of the newly copied object.CopyObjectResult.getVersionId()
,
CompleteMultipartUploadResult.getVersionId()
,
PutObjectResult.getVersionId()
public java.util.Date getExpirationTime()
ObjectExpirationResult
getExpirationTime
in interface ObjectExpirationResult
public void setExpirationTime(java.util.Date expirationTime)
ObjectExpirationResult
setExpirationTime
in interface ObjectExpirationResult
expirationTime
- The date the object will expire.public java.lang.String getExpirationTimeRuleId()
ObjectExpirationResult
getExpirationTimeRuleId
in interface ObjectExpirationResult
BucketLifecycleConfiguration.Rule.getId()
public void setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
ObjectExpirationResult
setExpirationTimeRuleId
in interface ObjectExpirationResult
expirationTimeRuleId
- The rule ID of this object's expiration configurationpublic java.lang.String getETag()
public java.lang.String getErrorCode()
public java.lang.String getErrorHostId()
public java.lang.String getErrorMessage()
public java.lang.String getErrorRequestId()
public boolean isErrorResponse()
public boolean isRequesterCharged()
S3RequesterChargedResult
If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.
Enabling Requester Pays disables the ability to have anonymous access to this bucket
isRequesterCharged
in interface S3RequesterChargedResult
public void setRequesterCharged(boolean isRequesterCharged)
S3RequesterChargedResult
If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.
setRequesterCharged
in interface S3RequesterChargedResult
isRequesterCharged
- Indicates requester is charged for this operation.protected void doStartElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes attrs)
doStartElement
in class AbstractHandler
protected void doEndElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
doEndElement
in class AbstractHandler