From bcc6f257112b6f660a000e87e2b0c4164aade4a2 Mon Sep 17 00:00:00 2001 From: Xin Zheng Date: Fri, 4 Oct 2024 10:46:43 +0700 Subject: [PATCH 01/10] S3 supports --- pom.xml | 13 +- .../swisspush/reststorage/RestStorageMod.java | 14 +- .../reststorage/s3/FileReadStream.java | 272 ++++++++++++++ .../reststorage/s3/FileWriteStream.java | 111 ++++++ .../reststorage/s3/S3FileSystemDirLister.java | 135 +++++++ .../reststorage/s3/S3FileSystemStorage.java | 355 ++++++++++++++++++ .../reststorage/util/ModuleConfiguration.java | 42 ++- 7 files changed, 938 insertions(+), 4 deletions(-) create mode 100644 src/main/java/org/swisspush/reststorage/s3/FileReadStream.java create mode 100644 src/main/java/org/swisspush/reststorage/s3/FileWriteStream.java create mode 100644 src/main/java/org/swisspush/reststorage/s3/S3FileSystemDirLister.java create mode 100644 src/main/java/org/swisspush/reststorage/s3/S3FileSystemStorage.java diff --git a/pom.xml b/pom.xml index 7b543d4..9c3a451 100644 --- a/pom.xml +++ b/pom.xml @@ -69,7 +69,11 @@ guava ${guava.version} - + + software.amazon.awssdk + s3 + ${awssdk.version} +