Returns the "port" component of this URI, or -1 if empty or not present.
()
| 441 | |
| 442 | /** Returns the "port" component of this URI, or -1 if empty or not present. */ |
| 443 | public int getPort() { |
| 444 | return port != null && !port.isEmpty() ? Integer.parseInt(port) : -1; |
| 445 | } |
| 446 | |
| 447 | /** Returns the raw port component of this URI in its originally parsed form. */ |
| 448 | @Nullable |