/** * Creates a new connection to the server. * @param hostname The host name. * @param port The port. * @param username The user name for authentication. * @param password The user's password. * @param workingDirectory The directory to use. * @param fileSystemOptions The FileSystemOptions. * @return The FTPSClient. * @throws FileSystemException if an error occurs. */ public static FTPSClient createConnection(final String hostname, final int port, final char[] username, final char[] password, final String workingDirectory, final FileSystemOptions fileSystemOptions) throws FileSystemException { final FtpsConnectionFactory factory = new FtpsConnectionFactory(FtpsFileSystemConfigBuilder.getInstance()); return factory.createConnection(hostname, port, username, password, workingDirectory, fileSystemOptions); }
/** * Creates a new connection to the server. * * @param hostname The host name. * @param port The port. * @param username The user name for authentication. * @param password The user's password. * @param workingDirectory The directory to use. * @param fileSystemOptions The FileSystemOptions. * @return The FTPSClient. * @throws FileSystemException if an error occurs. */ public static FTPSClient createConnection(final String hostname, final int port, final char[] username, final char[] password, final String workingDirectory, final FileSystemOptions fileSystemOptions) throws FileSystemException { final FtpsConnectionFactory factory = new FtpsConnectionFactory(FtpsFileSystemConfigBuilder.getInstance()); return factory.createConnection(hostname, port, username, password, workingDirectory, fileSystemOptions); }
/** * Creates a new connection to the server. * * @param hostname The host name. * @param port The port. * @param username The user name for authentication. * @param password The user's password. * @param workingDirectory The directory to use. * @param fileSystemOptions The FileSystemOptions. * @return The FTPSClient. * @throws FileSystemException if an error occurs. */ public static FTPSClient createConnection(final String hostname, final int port, final char[] username, final char[] password, final String workingDirectory, final FileSystemOptions fileSystemOptions) throws FileSystemException { final FtpsConnectionFactory factory = new FtpsConnectionFactory(FtpsFileSystemConfigBuilder.getInstance()); return factory.createConnection(hostname, port, username, password, workingDirectory, fileSystemOptions); }
/** * Creates a new connection to the server. * * @param hostname The host name. * @param port The port. * @param username The user name for authentication. * @param password The user's password. * @param workingDirectory The directory to use. * @param fileSystemOptions The FileSystemOptions. * @return The FTPSClient. * @throws FileSystemException if an error occurs. */ public static FTPSClient createConnection(final String hostname, final int port, final char[] username, final char[] password, final String workingDirectory, final FileSystemOptions fileSystemOptions) throws FileSystemException { final FtpsConnectionFactory factory = new FtpsConnectionFactory(FtpsFileSystemConfigBuilder.getInstance()); return factory.createConnection(hostname, port, username, password, workingDirectory, fileSystemOptions); }