@Override protected void setupOpenConnection(final FTPSClient client, final FileSystemOptions fileSystemOptions) throws IOException { final FtpsDataChannelProtectionLevel level = builder.getDataChannelProtectionLevel(fileSystemOptions); if (level != null) { // '0' means streaming, that's what we do! try { client.execPBSZ(0); client.execPROT(level.name()); } catch (final SSLException e) { throw new FileSystemException("vfs.provider.ftps/data-channel.level", e, level.toString()); } } } }
@Override protected void setupOpenConnection(final FTPSClient client, final FileSystemOptions fileSystemOptions) throws IOException { final FtpsDataChannelProtectionLevel level = builder.getDataChannelProtectionLevel(fileSystemOptions); if (level != null) { // '0' means streaming, that's what we do! try { client.execPBSZ(0); client.execPROT(level.name()); } catch (final SSLException e) { throw new FileSystemException("vfs.provider.ftps/data-channel.level", e, level.toString()); } } } }
@Override protected void setupOpenConnection(final FTPSClient client, final FileSystemOptions fileSystemOptions) throws IOException { final FtpsDataChannelProtectionLevel level = builder.getDataChannelProtectionLevel(fileSystemOptions); if (level != null) { // '0' means streaming, that's what we do! try { client.execPBSZ(0); client.execPROT(level.name()); } catch (final SSLException e) { throw new FileSystemException("vfs.provider.ftps/data-channel.level", e, level.toString()); } } } }
@Override protected void setupOpenConnection(final FTPSClient client, final FileSystemOptions fileSystemOptions) throws IOException { final FtpsDataChannelProtectionLevel level = builder.getDataChannelProtectionLevel(fileSystemOptions); if (level != null) { // '0' means streaming, that's what we do! try { client.execPBSZ(0); client.execPROT(level.name()); } catch (final SSLException e) { throw new FileSystemException("vfs.provider.ftps/data-channel.level", e, level.toString()); } } }