Class HostPortHttpField

    • Constructor Detail

      • HostPortHttpField

        public HostPortHttpField​(java.lang.String authority)
      • HostPortHttpField

        protected HostPortHttpField​(HttpHeader header,
                                    java.lang.String name,
                                    java.lang.String authority)
      • HostPortHttpField

        public HostPortHttpField​(java.lang.String host,
                                 int port)
      • HostPortHttpField

        public HostPortHttpField​(HostPort hostport)
    • Method Detail

      • getHost

        public java.lang.String getHost()
        Get the host.
        Returns:
        the host
      • getPort

        public int getPort()
        Get the port.
        Returns:
        the port
      • getPort

        public int getPort​(int defaultPort)
        Get the port.
        Parameters:
        defaultPort - The default port to return if no port set
        Returns:
        the port
      • getHostPort

        public HostPort getHostPort()