Class SocketAddress

    • Constructor Detail

      • SocketAddress

        public SocketAddress​(io.vertx.core.net.SocketAddress delegate)
      • SocketAddress

        public SocketAddress​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.core.net.SocketAddress getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • inetSocketAddress

        public static SocketAddress inetSocketAddress​(int port,
                                                      String host)
        Parameters:
        port - the port
        host - the host
        Returns:
        the created socket address
      • domainSocketAddress

        public static SocketAddress domainSocketAddress​(String path)
        Parameters:
        path - the address path
        Returns:
        the created socket address
      • host

        public String host()
        Returns:
        the host address
      • hostName

        public String hostName()
        Returns:
        the host name
      • hostAddress

        public String hostAddress()
        Returns:
        the host address
      • port

        public int port()
        Returns:
        the address port or -1 for a domain socket
      • path

        public String path()
        Returns:
        the domain socket path or null for a inet socket address.
      • isInetSocket

        public boolean isInetSocket()
        Returns:
        true for an inet socket address
      • isDomainSocket

        public boolean isDomainSocket()
        Returns:
        true for an domain socket address
      • inetSocketAddress

        public static SocketAddress inetSocketAddress​(InetSocketAddress address)
        Parameters:
        address - the address
        Returns:
        the created socket address
      • newInstance

        public static SocketAddress newInstance​(io.vertx.core.net.SocketAddress arg)