Package org.eclipse.jetty.http
Class HostPortHttpField
- java.lang.Object
-
- org.eclipse.jetty.http.HttpField
-
- org.eclipse.jetty.http.HostPortHttpField
-
public class HostPortHttpField extends HttpField
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.http.HttpField
HttpField.IntValueHttpField, HttpField.LongValueHttpField
-
-
Constructor Summary
Constructors Modifier Constructor Description HostPortHttpField(String authority)
protected
HostPortHttpField(HttpHeader header, String name, String authority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHost()
Get the host.int
getPort()
Get the port.int
getPort(int defaultPort)
Get the port.-
Methods inherited from class org.eclipse.jetty.http.HttpField
contains, equals, getHeader, getIntValue, getLongValue, getName, getValue, getValues, hashCode, isSameName, toString
-
-
-
-
Constructor Detail
-
HostPortHttpField
public HostPortHttpField(String authority)
-
HostPortHttpField
protected HostPortHttpField(HttpHeader header, String name, String authority)
-
-
Method Detail
-
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
-
-