Class S3Session
java.lang.Object
org.springframework.integration.aws.support.S3Session
- All Implemented Interfaces:
Closeable,AutoCloseable,org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
public class S3Session
extends Object
implements org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
An Amazon S3
Session implementation.- Author:
- Artem Bilan, Jim Krygowski, Anwar Chirakkattil, Xavier François
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(InputStream inputStream, String destination) voidclose()booleanbooleanbooleanisOpen()String[]booleannormalizeBucketName(String path) voidread(String source, OutputStream outputStream) booleanvoidbooleanvoidsetEndpoint(String endpoint) voidwrite(InputStream inputStream, String destination) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.file.remote.session.Session
dirty, test
-
Constructor Details
-
S3Session
-
S3Session
public S3Session(AmazonS3 amazonS3, io.awspring.cloud.core.env.ResourceIdResolver resourceIdResolver)
-
-
Method Details
-
setEndpoint
-
list
- Specified by:
listin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
listNames
- Specified by:
listNamesin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
remove
- Specified by:
removein interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
rename
- Specified by:
renamein interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
read
- Specified by:
readin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
append
- Specified by:
appendin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
mkdir
- Specified by:
mkdirin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
rmdir
- Specified by:
rmdirin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
exists
- Specified by:
existsin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
readRaw
- Specified by:
readRawin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
finalizeRaw
public boolean finalizeRaw()- Specified by:
finalizeRawin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
getClientInstance
- Specified by:
getClientInstancein interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
getHostPort
- Specified by:
getHostPortin interfaceorg.springframework.integration.file.remote.session.Session<S3ObjectSummary>
-
normalizeBucketName
-