public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fixEngineUrl(java.lang.String url)
Trims and validates a URL.
|
static java.lang.String |
generateUserId()
Generates a new random UserId.
|
static boolean |
urlIsHttps(java.lang.String url)
Checks whether an URL is using HTTPS.
|
public static java.lang.String fixEngineUrl(java.lang.String url)
url
- URL string to fix.public static boolean urlIsHttps(java.lang.String url)
url
- URL string to check if it's using HTTPS.public static java.lang.String generateUserId()