public abstract class RemoteAddress
extends java.lang.Object
Constructor and Description |
---|
RemoteAddress() |
Modifier and Type | Method and Description |
---|---|
static RemoteAddress |
create(byte[] address) |
static RemoteAddress |
create(java.net.InetAddress address) |
static RemoteAddress |
create(java.net.InetSocketAddress address) |
abstract java.util.Optional<java.net.InetAddress> |
getAddress() |
abstract int |
getPort()
Returns a port if defined or 0 otherwise.
|
abstract boolean |
isUnknown() |
public abstract boolean isUnknown()
public abstract java.util.Optional<java.net.InetAddress> getAddress()
public abstract int getPort()
public static RemoteAddress create(java.net.InetAddress address)
public static RemoteAddress create(java.net.InetSocketAddress address)
public static RemoteAddress create(byte[] address)