Class FtpEmbeddedInfraService

java.lang.Object
org.apache.camel.test.infra.common.services.AbstractService
org.apache.camel.test.infra.ftp.services.embedded.FtpEmbeddedInfraService
All Implemented Interfaces:
AutoCloseable, org.apache.camel.test.infra.common.services.InfrastructureService, FtpInfraService
Direct Known Subclasses:
FtpsEmbeddedInfraService

@InfraService(service=FtpInfraService.class, description="Embedded FTP Server", serviceAlias="ftp") public class FtpEmbeddedInfraService extends org.apache.camel.test.infra.common.services.AbstractService implements FtpInfraService
  • Field Details

    • DEFAULT_LISTENER

      protected static final String DEFAULT_LISTENER
      See Also:
    • ftpServer

      protected org.apache.ftpserver.FtpServer ftpServer
    • port

      protected int port
    • testDirectory

      protected String testDirectory
    • configurationTestDirectory

      protected String configurationTestDirectory
    • rootDir

      protected Path rootDir
    • embeddedConfigurationTemplate

      protected EmbeddedConfigurationBuilder embeddedConfigurationTemplate
  • Constructor Details

    • FtpEmbeddedInfraService

      public FtpEmbeddedInfraService()
    • FtpEmbeddedInfraService

      protected FtpEmbeddedInfraService(EmbeddedConfigurationBuilder embeddedConfigurationTemplate)
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Specified by:
      setUp in class org.apache.camel.test.infra.common.services.AbstractService
      Throws:
      Exception
    • createUser

      protected void createUser(org.apache.ftpserver.ftplet.UserManager userMgr, String name, String password, Path home, boolean writePermission)
    • createFtpServerFactory

      protected org.apache.ftpserver.FtpServerFactory createFtpServerFactory(EmbeddedConfiguration embeddedConfiguration)
    • tearDown

      protected void tearDown()
      Specified by:
      tearDown in class org.apache.camel.test.infra.common.services.AbstractService
    • disconnectAllSessions

      public void disconnectAllSessions()
    • registerProperties

      protected void registerProperties(BiConsumer<String,String> store)
      Specified by:
      registerProperties in class org.apache.camel.test.infra.common.services.AbstractService
    • getFtpRootDir

      public Path getFtpRootDir()
      Specified by:
      getFtpRootDir in interface FtpInfraService
    • resume

      public void resume()
    • getPort

      public int getPort()
      Specified by:
      getPort in interface FtpInfraService
    • countConnections

      public int countConnections()
    • ftpFile

      public Path ftpFile(String file)
    • registerProperties

      public void registerProperties()
      Specified by:
      registerProperties in interface org.apache.camel.test.infra.common.services.InfrastructureService