Class HostPortHttpField


  • public class HostPortHttpField
    extends HttpField
    • Constructor Detail

      • HostPortHttpField

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

        protected HostPortHttpField​(HttpHeader header,
                                    java.lang.String name,
                                    java.lang.String authority)
    • 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