Class PathUrlFactory


  • @ApplicationScoped
    public class PathUrlFactory
    extends Object
    Factory for the generation of URL for accessing GIT files on backend.
    • Constructor Detail

      • PathUrlFactory

        public PathUrlFactory()
    • Method Detail

      • getDownloadFileUrl

        public String getDownloadFileUrl​(org.uberfire.backend.vfs.Path path)

        Returns the download URL for a given file provided by a servlet method.

        Parameters:
        path - The path of the file.
      • getDownloadFileUrl

        public String getDownloadFileUrl​(String path)

        Returns the download URL for a given file provided by a servlet method.

        Parameters:
        path - The path of the file.
      • getUploadFileUrl

        public String getUploadFileUrl​(String path)

        Returns the upload URL for a given file provided by a servlet method.

        Parameters:
        path - The path of the file.