Package org.eclipse.jetty.http
Class HostPortHttpField
- java.lang.Object
-
- org.eclipse.jetty.http.HttpField
-
- org.eclipse.jetty.http.HostPortHttpField
-
@Deprecated(since="2021-05-27") public class HostPortHttpField extends HttpField
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.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
Constructors Constructor Description HostPortHttpField(String authority)
Deprecated.HostPortHttpField(String host, int port)
Deprecated.HostPortHttpField(HostPort hostport)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getHost()
Deprecated.Get the host.HostPort
getHostPort()
Deprecated.int
getPort()
Deprecated.Get the port.int
getPort(int defaultPort)
Deprecated.Get the port.-
Methods inherited from class org.eclipse.jetty.http.HttpField
contains, equals, getHeader, getIntValue, getLongValue, getLowerCaseName, getName, getValue, getValues, hashCode, is, isSameName, toString
-
-
-
-
Method Detail
-
getHost
public String getHost()
Deprecated.Get the host.- Returns:
- the host
-
getPort
public int getPort()
Deprecated.Get the port.- Returns:
- the port
-
getPort
public int getPort(int defaultPort)
Deprecated.Get the port.- Parameters:
defaultPort
- The default port to return if no port set- Returns:
- the port
-
getHostPort
public HostPort getHostPort()
Deprecated.
-
-