public static class XmlResponsesSaxParser.CompleteMultipartUploadHandler extends AbstractSSEHandler implements ObjectExpirationResult, S3VersionResult, S3RequesterChargedResult
Modifier and Type | Field and Description |
---|---|
private AmazonS3Exception |
ase |
private java.lang.String |
errorCode |
private java.lang.String |
hostId |
private java.lang.String |
requestId |
private CompleteMultipartUploadResult |
result |
Constructor and Description |
---|
CompleteMultipartUploadHandler() |
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) |
AmazonS3Exception |
getAmazonS3Exception() |
CompleteMultipartUploadResult |
getCompleteMultipartUploadResult() |
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.lang.String |
getVersionId()
Gets the version ID of the newly copied object.
|
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 CompleteMultipartUploadResult result
private AmazonS3Exception ase
private java.lang.String hostId
private java.lang.String requestId
private java.lang.String errorCode
protected ServerSideEncryptionResult sseResult()
AbstractSSEHandler
sseResult
in class AbstractSSEHandler
public java.util.Date getExpirationTime()
ObjectExpirationResult
getExpirationTime
in interface ObjectExpirationResult
CompleteMultipartUploadResult.getExpirationTime()
public void setExpirationTime(java.util.Date expirationTime)
ObjectExpirationResult
setExpirationTime
in interface ObjectExpirationResult
expirationTime
- The date the object will expire.CompleteMultipartUploadResult.setExpirationTime(java.util.Date)
public java.lang.String getExpirationTimeRuleId()
ObjectExpirationResult
getExpirationTimeRuleId
in interface ObjectExpirationResult
CompleteMultipartUploadResult.getExpirationTimeRuleId()
public void setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
ObjectExpirationResult
setExpirationTimeRuleId
in interface ObjectExpirationResult
expirationTimeRuleId
- The rule ID of this object's expiration configurationCompleteMultipartUploadResult.setExpirationTimeRuleId(java.lang.String)
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.lang.String getVersionId()
S3VersionResult
getVersionId
in interface S3VersionResult
CopyObjectResult.setVersionId(String)
,
CompleteMultipartUploadResult.getVersionId()
,
PutObjectResult.getVersionId()
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
CompleteMultipartUploadResult.isRequesterCharged()
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.CompleteMultipartUploadResult.setRequesterCharged(boolean)
public CompleteMultipartUploadResult getCompleteMultipartUploadResult()
public AmazonS3Exception getAmazonS3Exception()
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