public static class SftpVersionSelector.NamedVersionSelector extends Object implements SftpVersionSelector
SftpVersionSelector.NamedVersionSelectorCURRENT, 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, waitfixedVersionSelector, preferredVersionSelector, preferredVersionSelectorpublic NamedVersionSelector(String name, SftpVersionSelector selector)
public int selectVersion(ClientSession session, int current, List<Integer> available)
selectVersion in interface SftpVersionSelectorsession - 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–2017 The Apache Software Foundation. All rights reserved.