public interface SftpVersionSelector
Modifier and Type | Interface and Description |
---|---|
static class |
SftpVersionSelector.Utils
Utility class to help using
SftpVersionSelector s |
Modifier and Type | Field and Description |
---|---|
static SftpVersionSelector |
CURRENT
An
SftpVersionSelector that returns the current version |
static SftpVersionSelector |
MAXIMUM
An
SftpVersionSelector that returns the maximum available version |
static SftpVersionSelector |
MINIMUM
An
SftpVersionSelector that returns the maximum available version |
Modifier and Type | Method and Description |
---|---|
int |
selectVersion(int current,
List<Integer> available) |
static final SftpVersionSelector CURRENT
SftpVersionSelector
that returns the current versionstatic final SftpVersionSelector MAXIMUM
SftpVersionSelector
that returns the maximum available versionstatic final SftpVersionSelector MINIMUM
SftpVersionSelector
that returns the maximum available versionint selectVersion(int current, List<Integer> available)
current
- The current version negotiated with the serveravailable
- Extra versions available - may be empty and/or contain
only the current oneCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.