(String url)
| 1564 | /// |
| 1565 | /// protocol |
| 1566 | public static String getURLProtocol(String url) { |
| 1567 | int index = url.indexOf("://"); |
| 1568 | if (index != -1) { |
| 1569 | return url.substring(0, index); |
| 1570 | } |
| 1571 | return null; |
| 1572 | } |
| 1573 | |
| 1574 | /// Returns the URL's host portion |
| 1575 | /// |
no test coverage detected