public static class SftpVersionSelector.NamedVersionSelector extends Object implements SftpVersionSelector
SftpVersionSelector.NamedVersionSelector
CURRENT, MAXIMUM, MINIMUM
Constructor and Description |
---|
NamedVersionSelector(String name,
SftpVersionSelector selector) |
Modifier and Type | Method and Description |
---|---|
int |
selectVersion(ClientSession session,
int current,
List<Integer> available) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fixedVersionSelector, preferredVersionSelector, preferredVersionSelector
public NamedVersionSelector(String name, SftpVersionSelector selector)
public int selectVersion(ClientSession session, int current, List<Integer> available)
selectVersion
in interface SftpVersionSelector
session
- The ClientSession
through which the SFTP connection is madecurrent
- The current version negotiated with the serveravailable
- Extra versions available - may be empty and/or contain only the current oneCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.