Package akka.http.scaladsl.model
Class RemoteAddress
- java.lang.Object
-
- akka.http.javadsl.model.RemoteAddress
-
- akka.http.scaladsl.model.RemoteAddress
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ValueRenderable
- Direct Known Subclasses:
RemoteAddress.IP
,RemoteAddress.Unknown$
public abstract class RemoteAddress extends RemoteAddress implements ValueRenderable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteAddress.IP
static class
RemoteAddress.IP$
static class
RemoteAddress.Unknown$
-
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
apply(byte[] bytes)
static RemoteAddress.IP
apply(java.net.InetAddress a, scala.Option<java.lang.Object> port)
static RemoteAddress.IP
apply(java.net.InetSocketAddress a)
java.util.Optional<java.net.InetAddress>
getAddress()
Java APIint
getPort()
Java APIabstract boolean
isUnknown()
static java.lang.Object
renderWithoutPort()
abstract scala.Option<RemoteAddress.IP>
toIP()
abstract scala.Option<java.net.InetAddress>
toOption()
-
Methods inherited from class akka.http.javadsl.model.RemoteAddress
create, create, create
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.Renderable
render
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Method Detail
-
apply
public static RemoteAddress.IP apply(java.net.InetAddress a, scala.Option<java.lang.Object> port)
-
apply
public static RemoteAddress.IP apply(java.net.InetSocketAddress a)
-
apply
public static RemoteAddress apply(byte[] bytes)
-
renderWithoutPort
public static java.lang.Object renderWithoutPort()
-
toOption
public abstract scala.Option<java.net.InetAddress> toOption()
-
toIP
public abstract scala.Option<RemoteAddress.IP> toIP()
-
isUnknown
public abstract boolean isUnknown()
- Specified by:
isUnknown
in classRemoteAddress
-
getAddress
public java.util.Optional<java.net.InetAddress> getAddress()
Java API- Specified by:
getAddress
in classRemoteAddress
-
getPort
public int getPort()
Java API- Specified by:
getPort
in classRemoteAddress
-
-