Class ResourceHelper

java.lang.Object
com.amilesend.onedrive.resource.ResourceHelper

public final class ResourceHelper extends Object
  • Method Details

    • objectDefinedEquals

      public static boolean objectDefinedEquals(Object thisObj, Object thatObj)
      Used for equals() implementation to determine if a given object is mutually defined or not.
      Parameters:
      thisObj - the base object to compare to
      thatObj - the object to compare with
      Returns:
      true if both objects are defined (not null); else, false
    • escapeValueForUrlPath

      public static String escapeValueForUrlPath(String value)
      Helper method to leverage guava's UrlEscapers to escape values used for URL path elements.
      Parameters:
      value - the value to escape
      Returns:
      the encoded value
    • validateFilename

      public static void validateFilename(String filename)
      Helper to validate filenames for specific characters.

      API Documentation.

      Parameters:
      filename -