org.apache.hc.core5.net

## Interface NamedEndpoint

- All Known Implementing Classes:
    EndpointParameters, Host, HttpHost, URIAuthority

      public interface NamedEndpoint

  Endpoint identified by name (usually a fully qualified domain name) and port.
  Since:
    5.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getHostName()` Returns name (IP or DNS name).
    `int` | `getPort()` Returns the port.

- - ### Method Detail

    - #### getHostName

          String getHostName()

      Returns name (IP or DNS name).
      Returns:
        the host name (IP or DNS name)

    - #### getPort

          int getPort()

      Returns the port.
      Returns:
        the host port, or `-1` if not set

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.