public class LocalForwardingEntry extends SshdSocketAddress
BROADCAST_ADDRESS, BY_HOST_ADDRESS, BY_HOST_AND_PORT, CARRIER_GRADE_NAT_PREFIX, IPV4_ANYADDR, IPV6_LONG_ANY_ADDRESS, IPV6_LONG_LOCALHOST, IPV6_MAX_HEX_DIGITS_PER_GROUP, IPV6_MAX_HEX_GROUPS, IPV6_SHORT_ANY_ADDRESS, IPV6_SHORT_LOCALHOST, LOCALHOST_ADDRESS, LOCALHOST_IPV4, LOCALHOST_NAME, PRIVATE_CLASS_A_PREFIX, PRIVATE_CLASS_B_PREFIX, PRIVATE_CLASS_C_PREFIX, WELL_KNOWN_IPV4_ADDRESSES, WELL_KNOWN_IPV6_ADDRESSES
Constructor and Description |
---|
LocalForwardingEntry(SshdSocketAddress local,
InetSocketAddress bound) |
LocalForwardingEntry(SshdSocketAddress local,
SshdSocketAddress bound) |
LocalForwardingEntry(String hostName,
String alias,
int port) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static LocalForwardingEntry |
findMatchingEntry(String host,
int port,
Collection<? extends LocalForwardingEntry> entries) |
String |
getAlias() |
int |
hashCode() |
protected boolean |
isEquivalent(SshdSocketAddress that) |
String |
toString() |
getExternalNetwork4Addresses, getFirstExternalNetwork4Address, getHostName, getPort, isCarrierGradeNatIPv4Address, isIPv4Address, isIPv6Address, isLoopback, isLoopback, isPrivateIPv4Address, isValidHostAddress, isValidIPv4AddressComponent, toAddressPort, toAddressString, toAddressString, toInetSocketAddress, toInetSocketAddress, toSshdSocketAddress
public LocalForwardingEntry(SshdSocketAddress local, InetSocketAddress bound)
public LocalForwardingEntry(SshdSocketAddress local, SshdSocketAddress bound)
public String getAlias()
protected boolean isEquivalent(SshdSocketAddress that)
isEquivalent
in class SshdSocketAddress
public boolean equals(Object o)
equals
in class SshdSocketAddress
public int hashCode()
hashCode
in class SshdSocketAddress
public String toString()
toString
in class SshdSocketAddress
public static LocalForwardingEntry findMatchingEntry(String host, int port, Collection<? extends LocalForwardingEntry> entries)
host
- The host - ignored if null
/empty - i.e., no match reportedport
- The port - ignored if non-positive - i.e., no match reportedentries
- The Collection
of LocalForwardingEntry
to check
- ignored if null
/empty - i.e., no match reportednull
if no match foundCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.