/** * Return the FTPS type. Defaults to "explicit" if not defined. * * @param opts The FileSystemOptions. * @return The file type. * @see #setFtpsType * @deprecated As of 2.1, use {@link #getFtpsMode(FileSystemOptions)} */ @Deprecated public String getFtpsType(final FileSystemOptions opts) { return getFtpsMode(opts).name().toLowerCase(); }
/** * Return the FTPS type. Defaults to "explicit" if not defined. * * @param opts The FileSystemOptions. * @return The file type. * @see #setFtpsType * @deprecated As of 2.1, use {@link #getFtpsMode(FileSystemOptions)} */ @Deprecated public String getFtpsType(final FileSystemOptions opts) { return getFtpsMode(opts).name().toLowerCase(); }
/** * Returns the FTPS type. Defaults to "explicit" if not defined. * * @param opts The FileSystemOptions. * @return The file type. * @see #setFtpsType * @deprecated As of 2.1, use {@link #getFtpsMode(FileSystemOptions)} */ @Deprecated public String getFtpsType(final FileSystemOptions opts) { return getFtpsMode(opts).name().toLowerCase(); }
/** * Return the FTPS type. Defaults to "explicit" if not defined. * * @param opts The FileSystemOptions. * @return The file type. * @see #setFtpsType * @deprecated As of 2.1, use {@link #getFtpsType(FileSystemOptions)} */ @Deprecated public String getFtpsType(final FileSystemOptions opts) { return getFtpsMode(opts).name().toLowerCase(); }
@Override protected FTPSClient createClient(final FileSystemOptions fileSystemOptions) throws FileSystemException { final FTPSClient client; if (builder.getFtpsMode(fileSystemOptions) == FtpsMode.IMPLICIT) { client = new FTPSClient(true); } else { client = new FTPSClient(); } final TrustManager trustManager = builder.getTrustManager(fileSystemOptions); if (trustManager != null) { client.setTrustManager(trustManager); } final KeyManager keyManager = builder.getKeyManager(fileSystemOptions); if (keyManager != null) { client.setKeyManager(keyManager); } return client; }
@Override protected FTPSClient createClient(final FileSystemOptions fileSystemOptions) throws FileSystemException { final FTPSClient client; if (builder.getFtpsMode(fileSystemOptions) == FtpsMode.IMPLICIT) { client = new FTPSClient(true); } else { client = new FTPSClient(); } final TrustManager trustManager = builder.getTrustManager(fileSystemOptions); if (trustManager != null) { client.setTrustManager(trustManager); } final KeyManager keyManager = builder.getKeyManager(fileSystemOptions); if (keyManager != null) { client.setKeyManager(keyManager); } return client; }
@Override protected FTPSClient createClient(final FileSystemOptions fileSystemOptions) throws FileSystemException { final FTPSClient client; if (builder.getFtpsMode(fileSystemOptions) == FtpsMode.IMPLICIT) { client = new FTPSClient(true); } else { client = new FTPSClient(); } final TrustManager trustManager = builder.getTrustManager(fileSystemOptions); if (trustManager != null) { client.setTrustManager(trustManager); } final KeyManager keyManager = builder.getKeyManager(fileSystemOptions); if (keyManager != null) { client.setKeyManager(keyManager); } return client; }
if (builder.getFtpsMode(fileSystemOptions) == FtpsMode.IMPLICIT)