Class GcsRemoteFileTemplate
java.lang.Object
org.springframework.integration.file.remote.RemoteFileTemplate<com.google.cloud.storage.BlobInfo>
com.google.cloud.spring.storage.integration.GcsRemoteFileTemplate
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.InitializingBean,org.springframework.integration.file.remote.RemoteFileOperations<com.google.cloud.storage.BlobInfo>
public class GcsRemoteFileTemplate
extends org.springframework.integration.file.remote.RemoteFileTemplate<com.google.cloud.storage.BlobInfo>
A remote file template for Google Cloud Storage.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.springframework.integration.file.remote.RemoteFileTemplate
logger, sessionFactory -
Constructor Summary
ConstructorsConstructorDescriptionGcsRemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<com.google.cloud.storage.BlobInfo> sessionFactory) Construct aRemoteFileTemplatewith the supplied session factory. -
Method Summary
Modifier and TypeMethodDescription<T,C> T executeWithClient(org.springframework.integration.file.remote.ClientCallback<C, T> callback) Methods inherited from class org.springframework.integration.file.remote.RemoteFileTemplate
afterPropertiesSet, append, append, execute, exists, get, get, getDirectoryExpressionProcessor, getRemoteFileSeparator, getSession, getSessionFactory, getTemporaryFileSuffix, invoke, isUseTemporaryFileName, list, remove, rename, send, send, setAutoCreateDirectory, setBeanFactory, setCharset, setFileNameExpression, setFileNameGenerator, setRemoteDirectoryExpression, setRemoteFileSeparator, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileName
-
Constructor Details
-
GcsRemoteFileTemplate
public GcsRemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<com.google.cloud.storage.BlobInfo> sessionFactory) Construct aRemoteFileTemplatewith the supplied session factory.- Parameters:
sessionFactory- the session factory.
-
-
Method Details
-
executeWithClient
public <T,C> T executeWithClient(org.springframework.integration.file.remote.ClientCallback<C, T> callback) - Specified by:
executeWithClientin interfaceorg.springframework.integration.file.remote.RemoteFileOperations<com.google.cloud.storage.BlobInfo>- Overrides:
executeWithClientin classorg.springframework.integration.file.remote.RemoteFileTemplate<com.google.cloud.storage.BlobInfo>
-