Returns the percent-decoded "Authority" component of this URI, or null if not present. NB: This method's decoding is lossy -- It only exists for compatibility with java.net.URI. Prefer #getRawAuthority() or work instead with authority in terms of its individual components ({@link
()
| 359 | * themselves. |
| 360 | */ |
| 361 | @Nullable |
| 362 | public String getAuthority() { |
| 363 | return percentDecodeAssumedUtf8(getRawAuthority()); |
| 364 | } |
| 365 | |
| 366 | private boolean hasAuthority() { |
| 367 | return host != null; |