Package de.bytestore.hostinger.handler
Klasse FTPHandler
java.lang.Object
de.bytestore.hostinger.handler.FTPHandler
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic intstatic intprotected static final org.slf4j.Loggerstatic int -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidaddAccount(String usernameIO, String passwordIO, File homeIO) Adds a new FTP account with the specified username, password, and home directory.booleanexistsAccount(String usernameIO) Checks if an FTP account with the specified username exists.static voidload(io.jmix.appsettings.AppSettings appSettings) static voidremoveAccount(String usernameIO) Removes an FTP account with the specified username.static voidstart()
-
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
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
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
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.
-