Class S3FileInfo
java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<software.amazon.awssdk.services.s3.model.S3Object>
org.springframework.integration.aws.support.S3FileInfo
- All Implemented Interfaces:
Comparable<org.springframework.integration.file.remote.FileInfo<software.amazon.awssdk.services.s3.model.S3Object>>
,org.springframework.integration.file.remote.FileInfo<software.amazon.awssdk.services.s3.model.S3Object>
public class S3FileInfo
extends org.springframework.integration.file.remote.AbstractFileInfo<software.amazon.awssdk.services.s3.model.S3Object>
An Amazon S3
FileInfo
implementation.- Since:
- 1.1
- Author:
- Christian Tzolov, Artem Bilan
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.integration.file.remote.AbstractFileInfo
compareTo, getRemoteDirectory, setRemoteDirectory, toJson
-
Constructor Details
-
S3FileInfo
public S3FileInfo(software.amazon.awssdk.services.s3.model.S3Object s3Object)
-
-
Method Details
-
isDirectory
public boolean isDirectory() -
isLink
public boolean isLink() -
getSize
public long getSize() -
getModified
public long getModified() -
getFilename
-
getPermissions
A permissions representation string. ThrowsUnsupportedOperationException
to avoid extraS3Client.getObjectAcl(software.amazon.awssdk.services.s3.model.GetObjectAclRequest)
REST call. The target application amy choose to do that by its logic.- Returns:
- the permissions representation string.
-
getFileInfo
public software.amazon.awssdk.services.s3.model.S3Object getFileInfo() -
toString
- Overrides:
toString
in classorg.springframework.integration.file.remote.AbstractFileInfo<software.amazon.awssdk.services.s3.model.S3Object>
-