public class LocalForwardingEntry extends SshdSocketAddress
BROADCAST_ADDRESS, BY_HOST_ADDRESS, BY_HOST_AND_PORT, 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 |
|---|---|
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, isLoopback, isLoopback, isPrivateIPv4Address, isValidHostAddress, isValidIPv4AddressComponent, toAddressPort, toAddressString, toAddressString, toInetSocketAddress, toInetSocketAddress, toSshdSocketAddresspublic String getAlias()
protected boolean isEquivalent(SshdSocketAddress that)
isEquivalent in class SshdSocketAddresspublic boolean equals(Object o)
equals in class SshdSocketAddresspublic int hashCode()
hashCode in class SshdSocketAddresspublic String toString()
toString in class SshdSocketAddresspublic 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–2017 The Apache Software Foundation. All rights reserved.