@return the protocol scheme of the URL, including the final ':'.
()
| 374 | * @return the protocol scheme of the URL, including the final ':'. |
| 375 | */ |
| 376 | @JsxGetter |
| 377 | public String getProtocol() { |
| 378 | if (url_ == null) { |
| 379 | return null; |
| 380 | } |
| 381 | final String protocol = url_.getProtocol(); |
| 382 | return protocol.isEmpty() ? "" : (protocol + ":"); |
| 383 | } |
| 384 | |
| 385 | /** |
| 386 | * Sets the {@code protocol} property. |