HttpField.IntValueHttpField, HttpField.LongValueHttpField
Constructor and Description |
---|
HostPortHttpField(HostPort hostport) |
HostPortHttpField(String authority) |
HostPortHttpField(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Get the host.
|
HostPort |
getHostPort() |
int |
getPort()
Get the port.
|
int |
getPort(int defaultPort)
Get the port.
|
contains, equals, getHeader, getIntValue, getLongValue, getLowerCaseName, getName, getValue, getValues, hashCode, isSameName, toString
public HostPortHttpField(String authority)
public HostPortHttpField(String host, int port)
public HostPortHttpField(HostPort hostport)
public String getHost()
public int getPort()
public int getPort(int defaultPort)
defaultPort
- The default port to return if no port setpublic HostPort getHostPort()
Copyright © 2010 - 2020 Adobe. All Rights Reserved