InetSocketAddress is twofold:
InetSocketAddress performs a DNS resolution on the provided host name - which we don't want do use until
we want to create a connection using this address (thus the toInetSocketAddress() call which executes this
query
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final Comparator | BY_HOST_ADDRESS
Compares |
| public static final Comparator | BY_HOST_AND_PORT
Compares |
| public static final String | |
| private final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final String | |
| public static final String | |
| public static final SshdSocketAddress | LOCALHOST_ADDRESS
A dummy placeholder that can be used instead of |
| public static final String | |
| public static final String | |
| private final int | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final long | |
| public static final Set | |
| public static final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static <V> V | |
| public static <V> Map. | findMatchingOptionalWildcardEntry(Map<SshdSocketAddress, ? extends V> map, SshdSocketAddress address)
|
| public static List | Returns: aList of local network addresses which are not multicast or localhost sorted according to
BY_HOST_ADDRESS
|
| public static InetAddress | Returns: Inet4Address associated with an external interface DevNote: We actually return InetAddress here, as Inet4Addresses are final and cannot be mocked.Returns the first external network address assigned to this machine or null if one is not found. |
| public String | |
| public int | |
| public int | |
| public static boolean | Returns: true if the address is in the 100.64.0.0/10 rangeThe address to be checked addr)
|
| protected boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the address is a loopback oneNote if
The addr)InetAddress to be considered
|
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if this is one of the allocated private blocksNote it assumes that the address string is indeed an IPv4 address The address string addr)Checks if the address is one of the allocated private blocks |
| public static boolean | Returns: true if the address is:
The addr)InetAddress to be verified
|
| public static boolean | Returns: true if valid IPv4 address componentThe c)CharSequence to be validateChecks if the provided argument is a valid IPv4 address component:
|
| public static boolean | |
| public static <V> V | |
| public static int | Returns: The associated port value - negative if failed to resolveThe addr)SocketAddress to examineAttempts to resolve the port value |
| public static String | |
| public static String | |
| public InetSocketAddress | |
| public static InetSocketAddress | Returns: TheInetSocketAddress instanceThe remoteAddress)SocketAddress - ignored if nullConverts a
|
| public static SshdSocketAddress | |
| public String |
| BROADCAST_ADDRESS | back to summary |
|---|---|
| public static final String BROADCAST_ADDRESS | |
| BY_HOST_ADDRESS | back to summary |
|---|---|
| public static final Comparator<InetAddress> BY_HOST_ADDRESS Compares
| |
| BY_HOST_AND_PORT | back to summary |
|---|---|
| public static final Comparator<SocketAddress> BY_HOST_AND_PORT Compares | |
| CARRIER_GRADE_NAT_PREFIX | back to summary |
|---|---|
| public static final String CARRIER_GRADE_NAT_PREFIX | |
| hostName | back to summary |
|---|---|
| private final String hostName | |
| IPV4_ANYADDR | back to summary |
|---|---|
| public static final String IPV4_ANYADDR | |
| IPV6_LONG_ANY_ADDRESS | back to summary |
|---|---|
| public static final String IPV6_LONG_ANY_ADDRESS | |
| IPV6_LONG_LOCALHOST | back to summary |
|---|---|
| public static final String IPV6_LONG_LOCALHOST | |
| IPV6_MAX_HEX_DIGITS_PER_GROUP | back to summary |
|---|---|
| public static final int IPV6_MAX_HEX_DIGITS_PER_GROUP Max. hex digits in each IPv6 group | |
| IPV6_MAX_HEX_GROUPS | back to summary |
|---|---|
| public static final int IPV6_MAX_HEX_GROUPS Max. number of hex groups (separated by ":") in an IPV6 address | |
| IPV6_SHORT_ANY_ADDRESS | back to summary |
|---|---|
| public static final String IPV6_SHORT_ANY_ADDRESS | |
| IPV6_SHORT_LOCALHOST | back to summary |
|---|---|
| public static final String IPV6_SHORT_LOCALHOST | |
| LOCALHOST_ADDRESS | back to summary |
|---|---|
| public static final SshdSocketAddress LOCALHOST_ADDRESS A dummy placeholder that can be used instead of | |
| LOCALHOST_IPV4 | back to summary |
|---|---|
| public static final String LOCALHOST_IPV4 | |
| LOCALHOST_NAME | back to summary |
|---|---|
| public static final String LOCALHOST_NAME | |
| port | back to summary |
|---|---|
| private final int port | |
| PRIVATE_CLASS_A_PREFIX | back to summary |
|---|---|
| public static final String PRIVATE_CLASS_A_PREFIX | |
| PRIVATE_CLASS_B_PREFIX | back to summary |
|---|---|
| public static final String PRIVATE_CLASS_B_PREFIX | |
| PRIVATE_CLASS_C_PREFIX | back to summary |
|---|---|
| public static final String PRIVATE_CLASS_C_PREFIX | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| WELL_KNOWN_IPV4_ADDRESSES | back to summary |
|---|---|
| public static final Set<String> WELL_KNOWN_IPV4_ADDRESSES | |
| WELL_KNOWN_IPV6_ADDRESSES | back to summary |
|---|---|
| public static final Set<String> WELL_KNOWN_IPV6_ADDRESSES | |
| SshdSocketAddress | back to summary |
|---|---|
| public SshdSocketAddress(int port) | |
| SshdSocketAddress | back to summary |
|---|---|
| public SshdSocketAddress(InetSocketAddress addr) | |
| SshdSocketAddress | back to summary |
|---|---|
| public SshdSocketAddress(String hostName, int port) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findByOptionalWildcardAddress | back to summary |
|---|---|
| public static <V> V findByOptionalWildcardAddress(Map<SshdSocketAddress, ? extends V> map, SshdSocketAddress address) | |
| findMatchingOptionalWildcardEntry | back to summary |
|---|---|
| public static <V> Map. | |
| getExternalNetwork4Addresses | back to summary |
|---|---|
public static List
| |
| getFirstExternalNetwork4Address | back to summary |
|---|---|
| public static InetAddress getFirstExternalNetwork4Address() Returns the first external network address assigned to this machine or null if one is not found.
| |
| getHostName | back to summary |
|---|---|
| public String getHostName() | |
| getPort | back to summary |
|---|---|
| public int getPort() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isCarrierGradeNatIPv4Address | back to summary |
|---|---|
| public static boolean isCarrierGradeNatIPv4Address(String addr) | |
| isEquivalent | back to summary |
|---|---|
| protected boolean isEquivalent(SshdSocketAddress that) | |
| isEquivalentHostName | back to summary |
|---|---|
| public static boolean isEquivalentHostName(String h1, String h2, boolean allowWildcard) | |
| isIPv4Address | back to summary |
|---|---|
| public static boolean isIPv4Address(String addr) | |
| isIPv4LoopbackAddress | back to summary |
|---|---|
| public static boolean isIPv4LoopbackAddress(String ip) | |
| isIPv6Address | back to summary |
|---|---|
| public static boolean isIPv6Address(String address) | |
| isIPv6LoopbackAddress | back to summary |
|---|---|
| public static boolean isIPv6LoopbackAddress(String ip) | |
| isLoopback | back to summary |
|---|---|
public static boolean isLoopback(InetAddress addr)
| |
| isLoopback | back to summary |
|---|---|
public static boolean isLoopback(String ip)
| |
| isLoopbackAlias | back to summary |
|---|---|
| public static boolean isLoopbackAlias(String h1, String h2) | |
| isPrivateIPv4Address | back to summary |
|---|---|
| public static boolean isPrivateIPv4Address(String addr) Checks if the address is one of the allocated private blocks
| |
| isValidHostAddress | back to summary |
|---|---|
public static boolean isValidHostAddress(InetAddress addr)
| |
| isValidIPv4AddressComponent | back to summary |
|---|---|
| public static boolean isValidIPv4AddressComponent(CharSequence c) Checks if the provided argument is a valid IPv4 address component:
| |
| isWildcardAddress | back to summary |
|---|---|
| public static boolean isWildcardAddress(String addr) | |
| removeByOptionalWildcardAddress | back to summary |
|---|---|
| public static <V> V removeByOptionalWildcardAddress(Map<SshdSocketAddress, ? extends V> map, SshdSocketAddress address) | |
| toAddressPort | back to summary |
|---|---|
| public static int toAddressPort(SocketAddress addr) Attempts to resolve the port value
| |
| toAddressString | back to summary |
|---|---|
| public static String toAddressString(SocketAddress addr) | |
| toAddressString | back to summary |
|---|---|
| public static String toAddressString(InetAddress addr) | |
| toInetSocketAddress | back to summary |
|---|---|
| public InetSocketAddress toInetSocketAddress() | |
| toInetSocketAddress | back to summary |
|---|---|
| public static InetSocketAddress toInetSocketAddress(SocketAddress remoteAddress) Converts a
| |
| toSshdSocketAddress | back to summary |
|---|---|
| public static SshdSocketAddress toSshdSocketAddress(SocketAddress addr) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |