public class LocalForwardingEntry extends SshdSocketAddress
BROADCAST_ADDRESS, BY_HOST_ADDRESS, CARRIER_GRADE_NAT_PREFIX, IP_ANYADDR, LOCALHOST_ADDRESS, LOCALHOST_IP, LOCALHOST_NAME, PRIVATE_CLASS_A_PREFIX, PRIVATE_CLASS_B_PREFIX, PRIVATE_CLASS_C_PREFIX
Constructor and Description |
---|
LocalForwardingEntry(String hostName,
String alias,
int port) |
Modifier and Type | Method and Description |
---|---|
static LocalForwardingEntry |
findMatchingEntry(String host,
int port,
Collection<? extends LocalForwardingEntry> entries) |
String |
getAlias() |
int |
hashCode() |
protected boolean |
isEquivalent(SshdSocketAddress that) |
String |
toString() |
equals, getExternalNetwork4Addresses, getFirstExternalNetwork4Address, getHostName, getPort, isCarrierGradeNatIPv4Address, isIPv4Address, isLoopback, isLoopback, isPrivateIPv4Address, isValidHostAddress, isValidIPv4AddressComponent, toAddressString, toInetSocketAddress
public String getAlias()
protected boolean isEquivalent(SshdSocketAddress that)
isEquivalent
in class SshdSocketAddress
public int hashCode()
hashCode
in class SshdSocketAddress
public String toString()
toString
in class SshdSocketAddress
public static final 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–2016 The Apache Software Foundation. All rights reserved.