| Modifier and Type | Class and Description |
|---|---|
| public static class | SftpVersionSelector.
Wraps a Note
|
| Modifier and Type | Field and Description |
|---|---|
| public static final SftpVersionSelector. | CURRENT
An |
| public static final SftpVersionSelector. | MAXIMUM
An |
| public static final SftpVersionSelector. | MINIMUM
An |
| Modifier and Type | Method and Description |
|---|---|
| public static SftpVersionSelector. | Returns: TheNamedVersionSelector wrapping the requested versionThe requested version version)Creates a selector the always returns the requested (fixed version) regardless of what the current or reported available versions are. |
| public static SftpVersionSelector. | Returns: ANamedVersionSelector that attempts to select the most preferred version that is also
listed as available.The preferred versions in decreasing order of preference (i.e., most preferred is 1st) - may
not be preferred)null/emptySelects a version in order of preference - if none of the preferred versions is listed as available then an
exception is thrown when the |
| public static SftpVersionSelector. | Returns: ANamedVersionSelector that attempts to select the most preferred version that is also
listed as available.The preferred versions in decreasing order of preference (i.e., most preferred is 1st) 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 |
| public static SftpVersionSelector. | Returns: ParsedNamedVersionSelectorThe selector value - if selector)null/empty then returns CURRENTParses the input string to see if it matches one of the "known" selectors names (case insensitive). |
| public int | Returns: The new requested version - if same as current, then nothing is doneThe session, boolean ClientSession through which the SFTP connection is madeIf initial, int true then this is the initial version sent via SSH_FXP_INIT otherwise it is
a re-negotiation.The current version negotiated with the server current, List<Integer> Extra versions available - may be empty and/or contain only the current one available)
|
| CURRENT | back to summary |
|---|---|
| public static final SftpVersionSelector. An | |
| MAXIMUM | back to summary |
|---|---|
| public static final SftpVersionSelector. An | |
| MINIMUM | back to summary |
|---|---|
| public static final SftpVersionSelector. An | |
| fixedVersionSelector | back to summary |
|---|---|
| public static SftpVersionSelector. Creates a selector the always returns the requested (fixed version) regardless of what the current or reported available versions are. If the requested version is not reported as available then an exception will be eventually thrown by the client during re-negotiation phase.
| |
| preferredVersionSelector | back to summary |
|---|---|
| public static SftpVersionSelector. Selects a version in order of preference - if none of the preferred versions is listed as available then an
exception is thrown when the
| |
| preferredVersionSelector | back to summary |
|---|---|
| public static SftpVersionSelector. Selects a version in order of preference - if none of the preferred versions is listed as available then an
exception is thrown when the
| |
| resolveVersionSelector | back to summary |
|---|---|
| public static SftpVersionSelector. Parses the input string to see if it matches one of the "known" selectors names (case insensitive). If
not, then checks if it is a single number and uses it as a
| |
| selectVersion | back to summary |
|---|---|
public int selectVersion(ClientSession session, boolean initial, int current, List<Integer> available)
| |
SftpVersionSelector and assigns it a nameNote
NamedVersionSelector are
considered equal if they are assigned the same name - case insensitive
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| protected final SftpVersionSelector |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public int | |
| public int | selectVersion(ClientSession
The session, boolean ClientSession through which the SFTP connection is madeIf initial, int true then this is the initial version sent via SSH_FXP_INIT otherwise it is
a re-negotiation.The current version negotiated with the server current, List<Integer> Extra versions available - may be empty and/or contain only the current one available)Implements org.
|
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| selector | back to summary |
|---|---|
| protected final SftpVersionSelector selector | |
| NamedVersionSelector | back to summary |
|---|---|
| public NamedVersionSelector(String name, SftpVersionSelector selector) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| selectVersion | back to summary |
|---|---|
| public int selectVersion(ClientSession session, boolean initial, int current, List<Integer> available) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |