Package org.frankframework.filesystem
Class S3FileRef
java.lang.Object
org.frankframework.filesystem.S3FileRef
Object to hold information about an object stored in Amazon S3.
Since the S3 API uses different types of response objects the object here is to:
- Allow keys to be prefixed with a bucket-name, separated by "|".
- Ensure the correct filename (with extension) is used.
- Ensures correct folder names, using UNIX path delimiters, ending with a "/".
- The content-lenght as well as modification-time are stored.
- Everything can be updated with a simple method to simplify code in implementations.
- Author:
- Niels Meijer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Returns the canonical name inclusive file path when presentgetName()
Returns either the file or foldername (suffixed with a slash)boolean
hasName()
void
updateObject
(software.amazon.awssdk.services.s3.model.GetObjectResponse obj) void
updateObject
(software.amazon.awssdk.services.s3.model.HeadObjectResponse hor)
-
Field Details
-
BUCKET_OBJECT_SEPARATOR
- See Also:
-
-
Constructor Details
-
S3FileRef
-
S3FileRef
-
S3FileRef
-
-
Method Details
-
getKey
Returns the canonical name inclusive file path when present -
getName
Returns either the file or foldername (suffixed with a slash) -
hasName
public boolean hasName() -
getUserMetadata
-
updateObject
public void updateObject(software.amazon.awssdk.services.s3.model.GetObjectResponse obj) -
updateObject
public void updateObject(software.amazon.awssdk.services.s3.model.HeadObjectResponse hor)
-