|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jets3t.servlets.gatekeeper.UrlSigner
org.jets3t.servlets.gatekeeper.impl.DefaultUrlSigner
org.jets3t.servlets.gatekeeper.impl.RenameToUuidUrlSigner
public class RenameToUuidUrlSigner
UrlSigner implementation that extends the DefaultUrlSigner class to perform some additional work - speficically this class renames the S3 objects keys based on the transaction ID.
Field Summary |
---|
Fields inherited from class org.jets3t.servlets.gatekeeper.impl.DefaultUrlSigner |
---|
credentials, s3BucketName, s3Service, secondsUntilExpiry, TRANSACTION_ID_METADATA_NAME |
Constructor Summary | |
---|---|
RenameToUuidUrlSigner(javax.servlet.ServletConfig servletConfig)
Constructs the UrlSigner with the required parameters. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jets3t.servlets.gatekeeper.impl.DefaultUrlSigner |
---|
signDelete, signGet, signGetAcl, signHead, signPut, signPutAcl |
Methods inherited from class org.jets3t.servlets.gatekeeper.UrlSigner |
---|
calculateExpiryTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |