Class ResourceStringUtils

java.lang.Object
org.springframework.data.rest.core.support.ResourceStringUtils

public class ResourceStringUtils extends Object
Helper methods aiming at handling String representations of resources.
Author:
Florent Biville
  • Constructor Details

    • ResourceStringUtils

      public ResourceStringUtils()
  • Method Details

    • hasTextExceptSlash

      public static boolean hasTextExceptSlash(CharSequence input)
      Checks whether the given input contains actual text (slash excluded). This is a specializing variant of )#hasText.
      Parameters:
      input -
    • removeLeadingSlash

      public static String removeLeadingSlash(String path)
      Returns a string without the leading slash, if any.
      Parameters:
      path -