Class URIAuthority

java.lang.Object
org.apache.hc.core5.net.URIAuthority
All Implemented Interfaces:
Serializable, NamedEndpoint

@Contract(threading=IMMUTABLE) public final class URIAuthority extends Object implements NamedEndpoint, Serializable
Represents authority component of request URI.
Since:
5.0
See Also:
  • Constructor Details

    • URIAuthority

      public URIAuthority(String userInfo, String hostname, int port)
      Constructs a new instance.
      Throws:
      IllegalArgumentException - If the port parameter is outside the specified range of valid port values, which is between 0 and 65535, inclusive. -1 indicates the scheme default port.
    • URIAuthority

      public URIAuthority(String hostname, int port)
    • URIAuthority

      public URIAuthority(String userInfo, Host host)
      Since:
      5.2
    • URIAuthority

      public URIAuthority(Host host)
      Since:
      5.2
    • URIAuthority

      public URIAuthority(String userInfo, NamedEndpoint endpoint)
      Since:
      5.2
    • URIAuthority

      public URIAuthority(NamedEndpoint namedEndpoint)
    • URIAuthority

      public URIAuthority(String hostname)
  • Method Details