Class HostPortHttpField

java.lang.Object
org.eclipse.jetty.http.HttpField
org.eclipse.jetty.http.HostPortHttpField
Direct Known Subclasses:
AuthorityHttpField

public class HostPortHttpField extends HttpField
An HttpField holding a preparsed Host and port number
See Also:
  • Constructor Details

    • HostPortHttpField

      public HostPortHttpField(String authority)
    • HostPortHttpField

      protected HostPortHttpField(HttpHeader header, String name, String authority)
    • HostPortHttpField

      public HostPortHttpField(String host, int port)
    • HostPortHttpField

      public HostPortHttpField(HostPort hostport)
    • HostPortHttpField

      public HostPortHttpField(HttpHeader header, String headerString, HostPort hostport)
  • Method Details

    • getHost

      public 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()