public class RenameToUuidUrlSigner extends DefaultUrlSigner
credentials, s3BucketName, s3Service, secondsUntilExpiry, TRANSACTION_ID_METADATA_NAME
Constructor and Description |
---|
RenameToUuidUrlSigner(javax.servlet.ServletConfig servletConfig)
Constructs the UrlSigner with the required parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
updateObject(SignatureRequest signatureRequest,
java.util.Properties messageProperties)
Overrides the implementation in DefaultUrlProvider to do everything that class does, but
also to rename objects based on the transaction ID.
|
signDelete, signGet, signGetAcl, signHead, signPut, signPutAcl
calculateExpiryTime
public RenameToUuidUrlSigner(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
The required parameters that must be available in the servlet configuration are:
servletConfig
- javax.servlet.ServletException
protected void updateObject(SignatureRequest signatureRequest, java.util.Properties messageProperties) throws S3ServiceException
Each object is renamed to the following format:
transactionId.objectCount.objectExtension
Objects that arrive with the metadata property
GatekeeperMessage.SUMMARY_DOCUMENT_METADATA_FLAG
as treated as special cases, as this
flag indicates that the object is an XML summary document provided by the JetS3t
Uploader
application. In this case, the object should not
be renamed as it is already named according to the last transaction ID.
updateObject
in class DefaultUrlSigner
signatureRequest
- messageProperties
- S3ServiceException