Class S3RemoteFileTemplate

java.lang.Object
org.springframework.integration.file.remote.RemoteFileTemplate<software.amazon.awssdk.services.s3.model.S3Object>
org.springframework.integration.aws.support.S3RemoteFileTemplate
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.integration.file.remote.RemoteFileOperations<software.amazon.awssdk.services.s3.model.S3Object>

public class S3RemoteFileTemplate extends org.springframework.integration.file.remote.RemoteFileTemplate<software.amazon.awssdk.services.s3.model.S3Object>
An Amazon S3 specific RemoteFileTemplate extension.
Author:
Artem Bilan
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.integration.file.remote.RemoteFileOperations

    org.springframework.integration.file.remote.RemoteFileOperations.OperationsCallback<F extends Object,T extends Object>
  • Field Summary

    Fields inherited from class org.springframework.integration.file.remote.RemoteFileTemplate

    logger, sessionFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    S3RemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<software.amazon.awssdk.services.s3.model.S3Object> sessionFactory)
    Construct a RemoteFileTemplate with the supplied session factory.
    S3RemoteFileTemplate(software.amazon.awssdk.services.s3.S3Client amazonS3)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T, C> T
    executeWithClient(org.springframework.integration.file.remote.ClientCallback<C,T> callback)
     
    boolean
    exists(String path)
     

    Methods inherited from class org.springframework.integration.file.remote.RemoteFileTemplate

    afterPropertiesSet, append, append, execute, get, get, getDirectoryExpressionProcessor, getRemoteFileSeparator, getSession, getSessionFactory, getTemporaryFileSuffix, invoke, isUseTemporaryFileName, list, remove, rename, send, send, setAutoCreateDirectory, setBeanFactory, setCharset, setFileNameExpression, setFileNameGenerator, setRemoteDirectoryExpression, setRemoteFileSeparator, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileName, shouldMarkSessionAsDirty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • S3RemoteFileTemplate

      public S3RemoteFileTemplate()
    • S3RemoteFileTemplate

      public S3RemoteFileTemplate(software.amazon.awssdk.services.s3.S3Client amazonS3)
    • S3RemoteFileTemplate

      public S3RemoteFileTemplate(org.springframework.integration.file.remote.session.SessionFactory<software.amazon.awssdk.services.s3.model.S3Object> sessionFactory)
      Construct a RemoteFileTemplate with 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:
      executeWithClient in interface org.springframework.integration.file.remote.RemoteFileOperations<software.amazon.awssdk.services.s3.model.S3Object>
      Overrides:
      executeWithClient in class org.springframework.integration.file.remote.RemoteFileTemplate<software.amazon.awssdk.services.s3.model.S3Object>
    • exists

      public boolean exists(String path)
      Specified by:
      exists in interface org.springframework.integration.file.remote.RemoteFileOperations<software.amazon.awssdk.services.s3.model.S3Object>
      Overrides:
      exists in class org.springframework.integration.file.remote.RemoteFileTemplate<software.amazon.awssdk.services.s3.model.S3Object>