Class HttpUtils


  • public final class HttpUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkArgument​(boolean expression, java.lang.String msg, java.lang.Object... vars)
      Check if argument is false.
      static java.lang.String checkNonNullTrim​(java.lang.String str)
      check if base is null and if not trim any whitespace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • checkArgument

        @FormatMethod
        public static void checkArgument​(boolean expression,
                                         java.lang.String msg,
                                         java.lang.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 java.lang.String checkNonNullTrim​(java.lang.String str)
        check if base is null and if not trim any whitespace.
        Parameters:
        str - string to check if null
        Returns:
        trimmed str