Class HttpUtils


  • public final class HttpUtils
    extends Object
    • Method Detail

      • checkArgument

        public static void checkArgument​(boolean expression,
                                         String msg,
                                         Object... vars)
        Check if argument is false. If false throw formatted error.
        Parameters:
        expression - expression which should be true
        msg - message with formatting
        vars - string format args
      • checkNonNullTrim

        public static String checkNonNullTrim​(String str)
        check if base is null and if not trim any whitespace.
        Parameters:
        str - string to check if null
        Returns:
        trimmed str