Package akka.http.javadsl.model
Class RemoteAddress
- java.lang.Object
-
- akka.http.javadsl.model.RemoteAddress
-
- Direct Known Subclasses:
RemoteAddress
public abstract class RemoteAddress extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RemoteAddress()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
isUnknown
public abstract boolean isUnknown()
-
getAddress
public abstract java.util.Optional<java.net.InetAddress> getAddress()
-
getPort
public abstract int getPort()
Returns a port if defined or 0 otherwise.
-
create
public static RemoteAddress create(java.net.InetAddress address)
-
create
public static RemoteAddress create(java.net.InetSocketAddress address)
-
create
public static RemoteAddress create(byte[] address)
-
-