public class URIs extends Object
| Constructor and Description |
|---|
URIs() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasHttpOrHttpsScheme(String uri)
Returns true if the given string begins with a http: or https: URI scheme.
|
static URI |
parseLeniently(String uri)
Like URI.create() but attempts to percent encode when possible instead of throwing.
|
static String |
percentEncodeIllegals(String s) |
static String |
percentPlusDecode(String s) |
static String |
toNormalizedSurt(String uri) |
public static boolean hasHttpOrHttpsScheme(String uri)
public static URI parseLeniently(String uri)
IllegalArgumentException - if parsing failedCopyright © 2024. All rights reserved.