Class RemoteAddress

  • Direct Known Subclasses:
    RemoteAddress

    public abstract class RemoteAddress
    extends java.lang.Object
    • Constructor Detail

      • RemoteAddress

        public RemoteAddress()
    • 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)