Package org.eclipse.jetty.http
Class HostPortHttpField
java.lang.Object
org.eclipse.jetty.http.HttpField
org.eclipse.jetty.http.HostPortHttpField
- Direct Known Subclasses:
AuthorityHttpField
An HttpField holding a preparsed Host and port number
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.http.HttpField
HttpField.IntValueHttpField, HttpField.LongValueHttpField
-
Constructor Summary
ModifierConstructorDescriptionHostPortHttpField
(String authority) HostPortHttpField
(String host, int port) protected
HostPortHttpField
(HttpHeader header, String name, String authority) HostPortHttpField
(HttpHeader header, String headerString, HostPort hostport) HostPortHttpField
(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
-
HostPortHttpField
-
-
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
-