Determines if the provided uri is an absolute uri. @param uri to evaluate. @return true if the uri is absolute.
(String uri)
| 97 | * @return true if the uri is absolute. |
| 98 | */ |
| 99 | public static boolean isAbsolute(String uri) { |
| 100 | return uri != null && !uri.isEmpty() && uri.startsWith("http"); |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Encodes the value, preserving all reserved characters.. Values that are already pct-encoded are |