Start supporting mounting of XML with FS.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / acr / fs / FsContentProvider.java
index 37401a29c7f894117a2a0240910ee0cd3c5fe595..3445733e18a13ff1727c20fb139ed82c9ba49c5f 100644 (file)
@@ -23,12 +23,14 @@ import org.argeo.api.acr.spi.ProvidedSession;
 public class FsContentProvider implements ContentProvider {
        final static String XMLNS_ = "xmlns:";
 
+       private final String mountPath;
        private final Path rootPath;
        private final boolean isRoot;
 
        private NavigableMap<String, String> prefixes = new TreeMap<>();
 
-       public FsContentProvider(Path rootPath, boolean isRoot) {
+       public FsContentProvider(String mountPath, Path rootPath, boolean isRoot) {
+               this.mountPath = mountPath;
                this.rootPath = rootPath;
                this.isRoot = isRoot;
                initNamespaces();
@@ -81,6 +83,12 @@ public class FsContentProvider implements ContentProvider {
                }
 
        }
+       
+       
+@Override
+       public String getMountPath() {
+               return mountPath;
+       }
 
        boolean isRoot(Path path) {
                try {