Class RenameToUuidUrlSigner


  • public class RenameToUuidUrlSigner
    extends DefaultUrlSigner
    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.
    Author:
    James Murty
    • Constructor Detail

      • RenameToUuidUrlSigner

        public RenameToUuidUrlSigner​(javax.servlet.ServletConfig servletConfig)
                              throws javax.servlet.ServletException
        Constructs the UrlSigner with the required parameters.

        The required parameters that must be available in the servlet configuration are:

        • S3BucketName: The bucket all objects are stored in (regardless of what bucket name the client provided).
        • SecondsToSign: How many seconds until the signed URLs will expire
          Note: this setting must allow enough time for the operation to complete before the expiry time is reached. For example, if uploads are expected over slow connections the expiry time must be long enough for the uploads to finish otherwise the uploaded file will be rejected after it has finished uploading.
        Parameters:
        servletConfig -
        Throws:
        javax.servlet.ServletException