public static class SftpVersionSelector.NamedVersionSelector extends java.lang.Object implements SftpVersionSelector
SftpVersionSelector.NamedVersionSelector| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name |
private SftpVersionSelector |
selector |
CURRENT, MAXIMUM, MINIMUM| Constructor and Description |
|---|
NamedVersionSelector(java.lang.String name,
SftpVersionSelector selector) |
| Modifier and Type | Method and Description |
|---|---|
int |
selectVersion(ClientSession session,
boolean initial,
int current,
java.util.List<java.lang.Integer> available) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfixedVersionSelector, preferredVersionSelector, preferredVersionSelectorprivate final java.lang.String name
private final SftpVersionSelector selector
public NamedVersionSelector(java.lang.String name,
SftpVersionSelector selector)
public int selectVersion(ClientSession session, boolean initial, int current, java.util.List<java.lang.Integer> available)
selectVersion in interface SftpVersionSelectorsession - The ClientSession through which the SFTP connection is madeinitial - If true then this is the initial version sent via SSH_FXP_INIT otherwise it is
a re-negotiation.current - The current version negotiated with the serveravailable - Extra versions available - may be empty and/or contain only the current onepublic java.lang.String toString()
toString in class java.lang.Object