AFSocketAddress for unknown socket types.
| Modifier and Type | Field and Description |
|---|---|
| private static AFAddressFamily | |
| private static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | AFGenericSocketAddress(int port, final byte[] socketAddress, ObjectPool.
|
| Modifier and Type | Method and Description |
|---|---|
| public static synchronized AFAddressFamily | |
| public File | getFile()
Implements abstract org. Returns the |
| public boolean | hasFilename()
Implements abstract org. Checks if the address can be resolved to a |
| public static boolean | Returns: true if so.The instance to check. addr)Checks if an |
| public static boolean | Returns: true if so.The instance to check. addr)Checks if a |
| private static AFGenericSocketAddress | newAFSocketAddress(int port, final byte[] socketAddress, ObjectPool.
|
| public static AFGenericSocketAddress | Returns: The address.The URI. uri)Hides org. Returns an |
| public static AFGenericSocketAddress | Returns: The address.The URI. uri, int The port to forcibly use, or overridePort)-1 for "don't override".Hides org. Returns an |
| public byte[] | Returns: A new byte array containing the system-specific representation of that address.Returns the native representation of this generic address, which is most likely not portable. |
| public String | toString()
Overrides java. Constructs a string representation of this InetSocketAddress. |
| public URI | toURI(String
The target scheme. scheme, URI An optional template to reuse certain parameters (e.g., the "path" component
for an template)http request), or null.Overrides org. Tries to create a URI based on this |
| public static AFGenericSocketAddress | Returns: TheAFGenericSocketAddress instance.The "special" address, int InetAddress.The port (use 0 for "none"). port)Returns an |
| public static AFGenericSocketAddress | Returns: TheAFGenericSocketAddress instance.The "special" hostname, as provided by hostname, int InetAddress#getHostName().The port (use 0 for "none"). port)Returns an |
| public static AFGenericSocketAddress | Returns: TheAFGenericSocketAddress instance.The address to unwrap. address)Returns an |
| family | back to summary |
|---|---|
| private static AFAddressFamily<AFGenericSocketAddress> family | |
| SELECTOR_PROVIDER_CLASS | back to summary |
|---|---|
| private static final String SELECTOR_PROVIDER_CLASS | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| AFGenericSocketAddress | back to summary |
|---|---|
| private AFGenericSocketAddress(int port, final byte[] socketAddress, ObjectPool. | |
| addressFamily | back to summary |
|---|---|
| public static synchronized AFAddressFamily Returns the corresponding
| |
| getFile | back to summary |
|---|---|
| public File getFile() throws FileNotFoundException Implements abstract org. Doc from org. Returns the
| |
| hasFilename | back to summary |
|---|---|
| public boolean hasFilename() Implements abstract org. Doc from org. Checks if the address can be resolved to a
| |
| isSupportedAddress | back to summary |
|---|---|
| public static boolean isSupportedAddress(InetAddress addr) Checks if an
| |
| isSupportedAddress | back to summary |
|---|---|
| public static boolean isSupportedAddress(SocketAddress addr) Checks if a
| |
| newAFSocketAddress | back to summary |
|---|---|
| private static AFGenericSocketAddress newAFSocketAddress(int port, final byte[] socketAddress, ObjectPool. | |
| of | back to summary |
|---|---|
| public static AFGenericSocketAddress of(URI uri) throws SocketException Hides org. Returns an
| |
| of | back to summary |
|---|---|
| public static AFGenericSocketAddress of(URI uri, int overridePort) throws SocketException Hides org. Returns an
| |
| toBytes | back to summary |
|---|---|
| public byte[] toBytes() Returns the native representation of this generic address, which is most likely not portable. The address contains the sa_family identifier as the first byte, and, on some platforms only, the address length, as the second byte.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Constructs a string representation of this InetSocketAddress.
This string is constructed by calling
If the address is an IPv6 address, the IPv6 literal is enclosed in
square brackets, for example:
To retrieve a string representation of the hostname or the address, use
| |
| toURI | back to summary |
|---|---|
| public URI toURI(String scheme, URI template) throws IOException Overrides org. Doc from org. Tries to create a URI based on this
| |
| unwrap | back to summary |
|---|---|
| public static AFGenericSocketAddress unwrap(InetAddress address, int port) throws SocketException Returns an
| |
| unwrap | back to summary |
|---|---|
| public static AFGenericSocketAddress unwrap(String hostname, int port) throws SocketException Returns an
| |
| unwrap | back to summary |
|---|---|
| public static AFGenericSocketAddress unwrap(SocketAddress address) throws SocketException Returns an
| |