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
-
Field Summary
Fields inherited from class org.eclipse.jetty.http.HttpField
NAME_VALUE_TOKENIZER, PARAMETER_TOKENIZER
-
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, contains, containsLast, containsLast, equals, getHeader, getIntValue, getLongValue, getLowerCaseName, getName, getValue, getValueList, getValueParameters, getValues, hashCode, is, isSameName, stripParameters, toString, valueParameters, withoutValue, withValue, withValues
-
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
-