Package | Description |
---|---|
org.apache.sshd.client.subsystem.sftp | |
org.apache.sshd.client.subsystem.sftp.fs | |
org.apache.sshd.client.subsystem.sftp.impl |
Modifier and Type | Class and Description |
---|---|
static class |
SftpVersionSelector.NamedVersionSelector |
Modifier and Type | Field and Description |
---|---|
static SftpVersionSelector |
SftpVersionSelector.CURRENT
An
SftpVersionSelector that returns the current version |
static SftpVersionSelector |
SftpVersionSelector.MAXIMUM
An
SftpVersionSelector that returns the maximum available version |
static SftpVersionSelector |
SftpVersionSelector.MINIMUM
An
SftpVersionSelector that returns the maximum available version |
Modifier and Type | Method and Description |
---|---|
static SftpVersionSelector |
SftpVersionSelector.fixedVersionSelector(int version)
Creates a selector the always returns the requested (fixed version) regardless
of what the current or reported available versions are.
|
static SftpVersionSelector |
SftpVersionSelector.preferredVersionSelector(int... preferred)
Selects a version in order of preference - if none of the preferred
versions is listed as available then an exception is thrown when the
selectVersion(ClientSession, int, List) method is invoked |
static SftpVersionSelector |
SftpVersionSelector.preferredVersionSelector(Iterable<? extends Number> preferred)
Selects a version in order of preference - if none of the preferred
versions is listed as available then an exception is thrown when the
selectVersion(ClientSession, int, List) method is invoked |
Modifier and Type | Method and Description |
---|---|
SftpClient |
SftpClientFactory.createSftpClient(ClientSession session,
SftpVersionSelector selector) |
default SftpFileSystem |
SftpClientFactory.createSftpFileSystem(ClientSession session,
SftpVersionSelector selector) |
SftpFileSystem |
SftpClientFactory.createSftpFileSystem(ClientSession session,
SftpVersionSelector selector,
int readBufferSize,
int writeBufferSize) |
Constructor and Description |
---|
NamedVersionSelector(String name,
SftpVersionSelector selector) |
Modifier and Type | Method and Description |
---|---|
SftpVersionSelector |
SftpFileSystem.getSftpVersionSelector() |
SftpVersionSelector |
SftpFileSystemProvider.getSftpVersionSelector() |
protected SftpVersionSelector |
SftpFileSystemProvider.resolveSftpVersionSelector(URI uri,
SftpVersionSelector defaultSelector,
PropertyResolver resolver) |
Modifier and Type | Method and Description |
---|---|
default SftpFileSystem |
SftpFileSystemClientSessionInitializer.createSftpFileSystem(SftpFileSystemProvider provider,
SftpFileSystemInitializationContext context,
ClientSession session,
SftpVersionSelector selector)
Invoked by the
SftpFileSystemProvider.newFileSystem(java.net.URI, Map) method
in order to create the SftpFileSystem once session has been authenticated. |
protected SftpVersionSelector |
SftpFileSystemProvider.resolveSftpVersionSelector(URI uri,
SftpVersionSelector defaultSelector,
PropertyResolver resolver) |
Constructor and Description |
---|
SftpFileSystem(SftpFileSystemProvider provider,
String id,
ClientSession session,
SftpClientFactory factory,
SftpVersionSelector selector) |
SftpFileSystemProvider(SftpVersionSelector selector) |
SftpFileSystemProvider(SshClient client,
SftpClientFactory factory,
SftpVersionSelector selector) |
SftpFileSystemProvider(SshClient client,
SftpVersionSelector selector) |
Modifier and Type | Method and Description |
---|---|
protected DefaultSftpClient |
DefaultSftpClientFactory.createDefaultSftpClient(ClientSession session,
SftpVersionSelector selector) |
SftpClient |
DefaultSftpClientFactory.createSftpClient(ClientSession session,
SftpVersionSelector selector) |
SftpFileSystem |
DefaultSftpClientFactory.createSftpFileSystem(ClientSession session,
SftpVersionSelector selector,
int readBufferSize,
int writeBufferSize) |
int |
DefaultSftpClient.negotiateVersion(SftpVersionSelector selector) |
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.