@return the host, that is the hostname, and then, if the port of the URL is nonempty, a ':', followed by the port of the URL.
()
| 208 | * a ':', followed by the port of the URL. |
| 209 | */ |
| 210 | @JsxGetter |
| 211 | public String getHostname() { |
| 212 | if (url_ == null) { |
| 213 | return null; |
| 214 | } |
| 215 | |
| 216 | return UrlUtils.encodeAnchor(url_.getHost()); |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Sets the {@code hostname} property. |
nothing calls this directly
no test coverage detected