Class SftpVersionSelector.NamedVersionSelector

    • Constructor Detail

      • NamedVersionSelector

        public NamedVersionSelector​(java.lang.String name,
                                    SftpVersionSelector selector)
    • Method Detail

      • selectVersion

        public int selectVersion​(ClientSession session,
                                 int current,
                                 java.util.List<java.lang.Integer> available)
        Specified by:
        selectVersion in interface SftpVersionSelector
        Parameters:
        session - The ClientSession through which the SFTP connection is made
        current - The current version negotiated with the server
        available - Extra versions available - may be empty and/or contain only the current one
        Returns:
        The new requested version - if same as current, then nothing is done
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object