java.lang.Object
org.eclipse.jetty.http.HttpField
org.eclipse.jetty.http.HostPortHttpField
An HttpField holding a preparsed Host and port number
- See Also:
-
HostPort
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.http.HttpField
HttpField.IntValueHttpField, HttpField.LongValueHttpField
-
Constructor Summary
ConstructorsModifierConstructorDescriptionHostPortHttpField
(String authority) HostPortHttpField
(String host, int port) protected
HostPortHttpField
(HttpHeader header, String name, String authority) HostPortHttpField
(HttpHeader header, String headerString, org.eclipse.jetty.util.HostPort hostport) HostPortHttpField
(org.eclipse.jetty.util.HostPort hostport) -
Method Summary
Methods inherited from class org.eclipse.jetty.http.HttpField
contains, equals, getHeader, getIntValue, getLongValue, getLowerCaseName, getName, getValue, getValueParameters, getValues, hashCode, is, isSameName, stripParameters, toString, valueParameters
-
Constructor Details
-
HostPortHttpField
-
HostPortHttpField
-
HostPortHttpField
-
HostPortHttpField
public HostPortHttpField(org.eclipse.jetty.util.HostPort hostport) -
HostPortHttpField
public HostPortHttpField(HttpHeader header, String headerString, org.eclipse.jetty.util.HostPort hostport)
-
-
Method Details
-
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 org.eclipse.jetty.util.HostPort getHostPort()
-