public final class Urls extends Object
Internal API: these methods are part of the internal API and may be removed, have their signature change, or have their access level decreased from public to protected, package, or private in future versions without notice.
| Modifier and Type | Method and Description |
|---|---|
static String |
concatenatePath(String path,
String endpoint)
Concatenate two path value.
|
static String |
ensureAbsolutePath(String path)
Ensure that given path is an absolute path (i.e starts with
'/'. |
static boolean |
startsWithHttpScheme(String url)
Check if given
url starts with HTTP scheme (i.e "http" or "https"). |
public static String ensureAbsolutePath(String path)
'/'.path - The path.public static String concatenatePath(String path, String endpoint)
path - Path prefix.endpoint - Path suffix.public static boolean startsWithHttpScheme(String url)
url starts with HTTP scheme (i.e "http" or "https").url - The URL to check.true if url starts with HTTP scheme, false otherwise.Copyright © 2019. All rights reserved.