Package com.loop54
Class Utils
java.lang.Object
com.loop54.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfixEngineUrl(String url) Trims and validates a URL.static StringGenerates a new random UserId.static booleanurlIsHttps(String url) Checks whether an URL is using HTTPS.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
fixEngineUrl
Trims and validates a URL.- Parameters:
url- URL string to fix.- Returns:
- The fixed url string.
-
urlIsHttps
Checks whether an URL is using HTTPS.- Parameters:
url- URL string to check if it's using HTTPS.- Returns:
- Whether the provided URL is using HTTPS.
-
generateUserId
Generates a new random UserId.- Returns:
- A new random UserId.
-