Class LocalForwardingEntry

    • Field Detail

      • alias

        private final java.lang.String alias
    • Constructor Detail

      • LocalForwardingEntry

        public LocalForwardingEntry​(SshdSocketAddress local,
                                    java.net.InetSocketAddress bound)
      • LocalForwardingEntry

        public LocalForwardingEntry​(java.lang.String hostName,
                                    java.lang.String alias,
                                    int port)
    • Method Detail

      • getAlias

        public java.lang.String getAlias()
      • findMatchingEntry

        public static LocalForwardingEntry findMatchingEntry​(java.lang.String host,
                                                             int port,
                                                             java.util.Collection<? extends LocalForwardingEntry> entries)
        Parameters:
        host - The host - ignored if null/empty - i.e., no match reported
        port - The port - ignored if non-positive - i.e., no match reported
        entries - The Collection of LocalForwardingEntry to check - ignored if null/empty - i.e., no match reported
        Returns:
        The first entry whose host or alias matches the host name - case insensitive and has a matching port - null if no match found