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 classRemoteAddress.IPstatic classRemoteAddress.IP$static classRemoteAddress.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 RemoteAddressapply(byte[] bytes)static RemoteAddress.IPapply(java.net.InetAddress a, scala.Option<java.lang.Object> port)static RemoteAddress.IPapply(java.net.InetSocketAddress a)java.util.Optional<java.net.InetAddress>getAddress()Java APIintgetPort()Java APIabstract booleanisUnknown()static java.lang.ObjectrenderWithoutPort()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:
isUnknownin classRemoteAddress
-
getAddress
public java.util.Optional<java.net.InetAddress> getAddress()
Java API- Specified by:
getAddressin classRemoteAddress
-
getPort
public int getPort()
Java API- Specified by:
getPortin classRemoteAddress
-
-