Class HostPortHttpField


  • @Deprecated(since="2021-05-27")
    public class HostPortHttpField
    extends HttpField
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    An HttpField holding a preparsed Host and port number
    See Also:
    HostPort
    • Constructor Detail

      • HostPortHttpField

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

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

        public HostPortHttpField​(HostPort hostport)
        Deprecated.
    • Method Detail

      • getHost

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

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

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

        public HostPort getHostPort()
        Deprecated.