@Override public FileSystemConfigBuilder getConfigBuilder() { return FtpsFileSystemConfigBuilder.getInstance(); } }
@Override public FileSystemConfigBuilder getConfigBuilder() { return FtpsFileSystemConfigBuilder.getInstance(); } }
@Override public FileSystemConfigBuilder getConfigBuilder() { return FtpsFileSystemConfigBuilder.getInstance(); } }
@Override public FileSystemConfigBuilder getConfigBuilder() { return FtpsFileSystemConfigBuilder.getInstance(); } }
/** * 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); }
protected FileSystemOptions getFileSystemOptions() { if (fileSystemOptions == null) { fileSystemOptions = new FileSystemOptions(); setupOptions(FtpsFileSystemConfigBuilder.getInstance()); } return fileSystemOptions; }
FtpsFileSystemConfigBuilder configBuilder = FtpsFileSystemConfigBuilder.getInstance();
protected FileSystemOptions getFileSystemOptions() { if (fileSystemOptions == null) { fileSystemOptions = new FileSystemOptions(); setupOptions(FtpsFileSystemConfigBuilder.getInstance()); } return fileSystemOptions; }
protected FileSystemOptions getFileSystemOptions() { if (fileSystemOptions == null) { fileSystemOptions = new FileSystemOptions(); setupOptions(FtpsFileSystemConfigBuilder.getInstance()); } return fileSystemOptions; }
FtpsFileSystemConfigBuilder.getInstance().setPassiveMode(opts, true); } else { setPassiveMode = setPassiveMode.trim(); FtpFileSystemConfigBuilder.getInstance().setPassiveMode(opts, Boolean.valueOf(setPassiveMode)); FtpsFileSystemConfigBuilder.getInstance().setPassiveMode(opts, Boolean.valueOf(setPassiveMode)); } catch (Exception e) {
/** * Get the default options for File system * * @return * @throws FileSystemException */ public static FileSystemOptions createDefaultOptions() throws FileSystemException { FileSystemOptions opts = new FileSystemOptions(); // SSH Key checking SftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(opts, "no"); // Root directory set to user home SftpFileSystemConfigBuilder.getInstance().setUserDirIsRoot(opts, false); // Timeout is count by Milliseconds SftpFileSystemConfigBuilder.getInstance().setTimeout(opts, 100000); FtpFileSystemConfigBuilder.getInstance().setPassiveMode(opts, true); FtpFileSystemConfigBuilder.getInstance().setSoTimeout(opts, 100000); FtpsFileSystemConfigBuilder.getInstance().setPassiveMode(opts, true); return opts; } }