Class HostPortHttpField

java.lang.Object
org.eclipse.jetty.http.HttpField
org.eclipse.jetty.http.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:
  • Constructor Details

    • HostPortHttpField

      public HostPortHttpField(String authority)
      Deprecated.
    • HostPortHttpField

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

      public HostPortHttpField(HostPort hostport)
      Deprecated.
  • Method Details

    • getHost

      public 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.