Klasse FTPHandler

java.lang.Object
de.bytestore.hostinger.handler.FTPHandler

public class FTPHandler extends Object
  • Felddetails

    • log

      protected static final org.slf4j.Logger log
    • portIO

      public static int portIO
    • defaultUpload

      public static int defaultUpload
    • defaultDownload

      public static int defaultDownload
  • Konstruktordetails

    • FTPHandler

      public FTPHandler()
  • Methodendetails

    • start

      public static void start()
    • addAccount

      public static void addAccount(String usernameIO, String passwordIO, File homeIO)
      Adds a new FTP account with the specified username, password, and home directory.
      Parameter:
      usernameIO - The username for the new FTP account.
      passwordIO - The password for the new FTP account.
      homeIO - The home directory for the new FTP account.
      Löst aus:
      RuntimeException - if an error occurs while saving the user to the
    • removeAccount

      public static void removeAccount(String usernameIO)
      Removes an FTP account with the specified username.
      Parameter:
      usernameIO - The username of the FTP account to be removed.
      Löst aus:
      RuntimeException - if an error occurs while deleting the user.
    • load

      public static void load(io.jmix.appsettings.AppSettings appSettings)
    • existsAccount

      public boolean existsAccount(String usernameIO)
      Checks if an FTP account with the specified username exists.
      Parameter:
      usernameIO - The username of the FTP account to check existence for.
      Gibt zurück:
      true if the FTP account exists, false otherwise.
      Löst aus:
      RuntimeException - if an error occurs while checking existence.