Package org.xwiki.vfs

Interface VfsManager


  • @Role
    public interface VfsManager
    API to construct a VFS URL or access the content of an archive.
    Since:
    7.4M2
    Version:
    $Id: cf37e382f94c0d2741412e459dd40d35efc15b34 $
    • Method Detail

      • getURL

        String getURL​(VfsResourceReference reference)
               throws VfsException
        Generate a relative VFS URL to access a resource inside an archive.
        Parameters:
        reference - the reference to a file inside a an archive. For example attach:space.page@my.zip/path/to/file.
        Returns:
        a relative URL that can be used to access the content of a file inside an archive (ZIP, EAR, TAR.GZ, etc)
        Throws:
        VfsException - if an error occurs computing the URL