Class GetObjectPresign

java.lang.Object
org.cdlib.mrt.s3v2.action.GetObjectPresign

public class GetObjectPresign extends Object
Before running this Java V2 code example, set up your development environment, including your credentials.

For more information, see the following documentation topic:

https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html

  • Field Details

    • s3Client

      protected software.amazon.awssdk.services.s3.S3Client s3Client
    • logger

      protected static final org.apache.logging.log4j.Logger logger
  • Constructor Details

    • GetObjectPresign

      public GetObjectPresign()
  • Method Details

    • getObjectPresign

      public static String getObjectPresign(software.amazon.awssdk.services.s3.presigner.S3Presigner presigner, String bucketName, String keyName, long expirationMs, String contentType, String contentDisposition)
    • createPresignedGetUrl

      public String createPresignedGetUrl(String bucketName, String keyName, long expirationMs)
    • createPresignedGetUrl2

      public String createPresignedGetUrl2(String bucketName, String keyName, long expirationMs)
    • getOverrideMap

      public static Map<String,List<String>> getOverrideMap(String contentType, String contentDisposition)