Package org.cdlib.mrt.s3v2.test
Class TestGetPresigned
java.lang.Object
org.cdlib.mrt.s3v2.test.TestGetPresigned
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic GetSSMprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final org.apache.logging.log4j.Loggerprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voiddoGetObjectPresign(V2Client v2client, String bucketName, String key, Long minutes, String contentType, String contentDisposition) static V2Clientstatic V2Clientstatic V2Clientstatic V2Clientstatic PropertiesgetMeta(String header, software.amazon.awssdk.services.s3.S3Client s3Client, String bucketName, String key) static voidstatic voidtest_aws_download(String key, Long minutes, String contentType, String contentDisposition) static voidtest_minio_download(String key, Long minutes, String contentType, String contentDisposition) static voidtest_sdsc_download(String key, Long startByte, Long endByte) static voidtest_wasabi_download(String key, Long minutes, String contentType, String contentDisposition)
-
Field Details
-
logger
protected static final org.apache.logging.log4j.Logger logger -
getSSM
-
fileBig
- See Also:
-
downFilePrefix
- See Also:
-
downloadBig
- See Also:
-
downloadSmall
- See Also:
-
downloadBigWasabi
- See Also:
-
downloadBigMinio
- See Also:
-
downloadBigSDSC
- See Also:
-
sha256Big
- See Also:
-
keyBig
- See Also:
-
keyPre1
- See Also:
-
keyPre2
- See Also:
-
keyPre3
- See Also:
-
keyPre9502
- See Also:
-
keyPre2002
- See Also:
-
fileSmall
- See Also:
-
sha256Small
- See Also:
-
keySmall
- See Also:
-
-
Constructor Details
-
TestGetPresigned
public TestGetPresigned()
-
-
Method Details
-
main
- Throws:
org.cdlib.mrt.utility.TException
-
test_sdsc_download
public static void test_sdsc_download(String key, Long startByte, Long endByte) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
test_aws_download
public static void test_aws_download(String key, Long minutes, String contentType, String contentDisposition) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
test_wasabi_download
public static void test_wasabi_download(String key, Long minutes, String contentType, String contentDisposition) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
test_minio_download
public static void test_minio_download(String key, Long minutes, String contentType, String contentDisposition) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getMeta
public static Properties getMeta(String header, software.amazon.awssdk.services.s3.S3Client s3Client, String bucketName, String key) -
getClientWasabi
- Throws:
org.cdlib.mrt.utility.TException
-
getClientMinio
- Throws:
org.cdlib.mrt.utility.TException
-
getClientSDSC
- Throws:
org.cdlib.mrt.utility.TException
-
getClientAWS
- Throws:
org.cdlib.mrt.utility.TException
-
doGetObjectPresign
protected static void doGetObjectPresign(V2Client v2client, String bucketName, String key, Long minutes, String contentType, String contentDisposition) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-