/** * Set FTPS type, either "implicit" or "explicit". * <p> * Note, that implicit mode is not standardized and considered as deprecated. Some unit tests for VFS fail with * implicit mode and it is not yet clear if its a problem with Commons VFS/Commons Net or our test server Apache * FTP/SSHD. * </p> * * @param opts The FileSystemOptions. * @param ftpsType The file type. * @see <a href="http://en.wikipedia.org/wiki/FTPS#Implicit">Wikipedia: FTPS/Implicit</a> * @deprecated As of 2.1, use {@link #setFtpsMode(FileSystemOptions, FtpsMode)} */ @Deprecated public void setFtpsType(final FileSystemOptions opts, final String ftpsType) { final FtpsMode mode; if (ftpsType != null) { mode = FtpsMode.valueOf(ftpsType.toUpperCase()); if (mode == null) { throw new IllegalArgumentException("Not a proper FTPS mode: " + ftpsType); } } else { mode = null; } setFtpsMode(opts, mode); }
/** * Set FTPS type, either "implicit" or "explicit". * <p> * Note, that implicit mode is not standardized and considered as deprecated. Some unit tests for VFS fail with * implicit mode and it is not yet clear if its a problem with Commons VFS/Commons Net or our test server Apache * FTP/SSHD. * </p> * * @param opts The FileSystemOptions. * @param ftpsType The file type. * @see <a href="http://en.wikipedia.org/wiki/FTPS#Implicit">Wikipedia: FTPS/Implicit</a> * @deprecated As of 2.1, use {@link #setFtpsMode(FileSystemOptions, FtpsMode)} */ @Deprecated public void setFtpsType(final FileSystemOptions opts, final String ftpsType) { final FtpsMode mode; if (ftpsType != null) { mode = FtpsMode.valueOf(ftpsType.toUpperCase()); if (mode == null) { throw new IllegalArgumentException("Not a proper FTPS mode: " + ftpsType); } } else { mode = null; } setFtpsMode(opts, mode); }
/** * Sets FTPS type, either "implicit" or "explicit". * <p> * Note, that implicit mode is not standardized and considered as deprecated. Some unit tests for VFS fail with * implicit mode and it is not yet clear if its a problem with Commons VFS/Commons Net or our test server Apache * FTP/SSHD. * </p> * * @param opts The FileSystemOptions. * @param ftpsType The file type. * @see <a href="http://en.wikipedia.org/wiki/FTPS#Implicit">Wikipedia: FTPS/Implicit</a> * @deprecated As of 2.1, use {@link #setFtpsMode(FileSystemOptions, FtpsMode)} */ @Deprecated public void setFtpsType(final FileSystemOptions opts, final String ftpsType) { final FtpsMode mode; if (ftpsType != null) { mode = FtpsMode.valueOf(ftpsType.toUpperCase()); if (mode == null) { throw new IllegalArgumentException("Not a proper FTPS mode: " + ftpsType); } } else { mode = null; } setFtpsMode(opts, mode); }
@Override protected void setupOptions(final FtpsFileSystemConfigBuilder builder) { super.setupOptions(builder); builder.setFtpsMode(fileSystemOptions, FtpsMode.IMPLICIT); }
@Override protected void setupOptions(final FtpsFileSystemConfigBuilder builder) { super.setupOptions(builder); builder.setFtpsMode(fileSystemOptions, FtpsMode.IMPLICIT); }
@Override protected void setupOptions(final FtpsFileSystemConfigBuilder builder) { super.setupOptions(builder); builder.setFtpsMode(fileSystemOptions, FtpsMode.IMPLICIT); }
if (implicitMode != null) { if (Boolean.parseBoolean(implicitMode)) { configBuilder.setFtpsMode(opts, FtpsMode.IMPLICIT); } else { configBuilder.setFtpsMode(opts, FtpsMode.EXPLICIT);
@Override protected void setupOptions(final FtpsFileSystemConfigBuilder builder) { super.setupOptions(builder); builder.setDataChannelProtectionLevel(fileSystemOptions, FtpsDataChannelProtectionLevel.P); builder.setFtpsMode(fileSystemOptions, FtpsMode.EXPLICIT); }
@Override protected void setupOptions(final FtpsFileSystemConfigBuilder builder) { super.setupOptions(builder); builder.setDataChannelProtectionLevel(fileSystemOptions, FtpsDataChannelProtectionLevel.P); builder.setFtpsMode(fileSystemOptions, FtpsMode.EXPLICIT); }
@Override protected void setupOptions(final FtpsFileSystemConfigBuilder builder) { super.setupOptions(builder); builder.setDataChannelProtectionLevel(fileSystemOptions, FtpsDataChannelProtectionLevel.P); builder.setFtpsMode(fileSystemOptions, FtpsMode.EXPLICIT); }
@Override protected void setupOptions(final FtpsFileSystemConfigBuilder builder) { super.setupOptions(builder); builder.setFtpsMode(fileSystemOptions, FtpsMode.IMPLICIT); builder.setShareSslContext(fileSystemOptions, true); }
@Override protected void setupOptions(final FtpsFileSystemConfigBuilder builder) { super.setupOptions(builder); builder.setDataChannelProtectionLevel(fileSystemOptions, FtpsDataChannelProtectionLevel.P); builder.setFtpsMode(fileSystemOptions, FtpsMode.EXPLICIT); builder.setShareSslContext(fileSystemOptions, true); }