Package play.core

Class Paths


  • public final class Paths
    extends Object
    Implementations to work with URL paths. This is a utility class with usages by Call.
    • Method Detail

      • relative

        public static String relative​(String startPath,
                                      String targetPath)
        Create a path to targetPath that's relative to the given startPath.
      • canonical

        public static String canonical​(String url)
        Create a canonical path that does not contain parent directories, current directories, or superfluous directory separators.