Class PathUtil


  • @Singleton
    public class PathUtil
    extends Object
    Contains methods that directly invoke Paths or involve implementation specific details on paths that are difficult to mock in unit tests.
    • Constructor Detail

      • PathUtil

        public PathUtil()
    • Method Detail

      • normalizePath

        public org.uberfire.backend.vfs.Path normalizePath​(org.uberfire.backend.vfs.Path path)
      • convert

        public org.uberfire.java.nio.file.Path convert​(org.uberfire.backend.vfs.Path path)
      • convert

        public org.uberfire.backend.vfs.Path convert​(org.uberfire.java.nio.file.Path path)
      • stripProtocolAndBranch

        public String stripProtocolAndBranch​(String uri)
      • getNiogitRepoPath

        public String getNiogitRepoPath​(org.uberfire.java.nio.file.Path path)
        Parameters:
        path - A path for a JGit file system. Must not be null.
        Returns:
        The file path for an niogit directory that contains the given path's filesystem.