Class S3Session
java.lang.Object
org.springframework.integration.aws.support.S3Session
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
public class S3Session
extends Object
implements org.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
An Amazon S3
Session
implementation.- Author:
- Artem Bilan, Jim Krygowski, Anwar Chirakkattil, Xavier François, Rogerio Lino
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(InputStream inputStream, String destination) void
close()
boolean
boolean
boolean
isOpen()
software.amazon.awssdk.services.s3.model.S3Object[]
String[]
boolean
normalizeBucketName
(String path) void
read
(String source, OutputStream outputStream) boolean
void
boolean
void
setEndpoint
(String endpoint) void
write
(InputStream inputStream, String destination) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.file.remote.session.Session
dirty, test
-
Constructor Details
-
S3Session
public S3Session(software.amazon.awssdk.services.s3.S3Client amazonS3)
-
-
Method Details
-
setEndpoint
-
list
- Specified by:
list
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
listNames
- Specified by:
listNames
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
remove
- Specified by:
remove
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
rename
- Specified by:
rename
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
read
- Specified by:
read
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
append
- Specified by:
append
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
mkdir
- Specified by:
mkdir
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
rmdir
- Specified by:
rmdir
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
exists
- Specified by:
exists
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
readRaw
- Specified by:
readRaw
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
finalizeRaw
public boolean finalizeRaw()- Specified by:
finalizeRaw
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
getClientInstance
- Specified by:
getClientInstance
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
getHostPort
- Specified by:
getHostPort
in interfaceorg.springframework.integration.file.remote.session.Session<software.amazon.awssdk.services.s3.model.S3Object>
-
normalizeBucketName
-