public class HostPortHttpField extends HttpField
HttpField.IntValueHttpField, HttpField.LongValueHttpField
Modifier | Constructor and Description |
---|---|
protected |
HostPortHttpField(HttpHeader header,
String name,
String authority) |
|
HostPortHttpField(String authority) |
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Get the host.
|
int |
getPort()
Get the port.
|
int |
getPort(int defaultPort)
Get the port.
|
contains, equals, getHeader, getIntValue, getLongValue, getName, getValue, getValues, hashCode, isSameName, toString
public HostPortHttpField(String authority)
protected HostPortHttpField(HttpHeader header, String name, String authority)
public String getHost()
public int getPort()
public int getPort(int defaultPort)
defaultPort
- The default port to return if no port setCopyright © 1995–2017 Webtide. All rights reserved.