Package com.loop54

Class Utils

java.lang.Object
com.loop54.Utils

public class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • fixEngineUrl

      public static String fixEngineUrl(String url)
      Trims and validates a URL.
      Parameters:
      url - URL string to fix.
      Returns:
      The fixed url string.
    • urlIsHttps

      public static boolean urlIsHttps(String url)
      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

      public static String generateUserId()
      Generates a new random UserId.
      Returns:
      A new random UserId.