Examples of resolveCollectionPath()


Examples of org.exist.xmldb.XmldbURI.resolveCollectionPath()

                        try {
                            XmldbURI locationUri = XmldbURI.xmldbUriFor( location );

                            if( moduleLoadPath.startsWith( XmldbURI.XMLDB_URI_PREFIX ) ) {
                                final XmldbURI moduleLoadPathUri = XmldbURI.xmldbUriFor( moduleLoadPath );
                                locationUri = moduleLoadPathUri.resolveCollectionPath( locationUri );
                            }

                            DocumentImpl sourceDoc = null;

                            try {
View Full Code Here

Examples of org.exist.xmldb.XmldbURI.resolveCollectionPath()

                // If location is relative (does not contain any / and does
                // not start with . or .. then the path of the module need to
                // be added.
                if(location.indexOf("/") <0 || location.startsWith(".")){
                    final XmldbURI moduleLoadPathUri = XmldbURI.xmldbUriFor(context.getModuleLoadPath());
                    locationUri = moduleLoadPathUri.resolveCollectionPath(locationUri);
                }

                DocumentImpl sourceDoc = null;
                try {
                    sourceDoc = context.getBroker().getXMLResource(locationUri.toCollectionPathURI(), Lock.READ_LOCK);
View Full Code Here

Examples of org.exist.xmldb.XmldbURI.resolveCollectionPath()

        XmldbURI pathUri = XmldbURI.xmldbUriFor(path, false);
       
        final XmldbURI baseURI = context.getBaseURI().toXmldbURI();
        if (baseURI != null && !(baseURI.equals("") || baseURI.equals("/db"))) {
          // relative collection Path: add the current base URI
          pathUri = baseURI.resolveCollectionPath(pathUri);
        }

        // relative collection Path: add the current module call URI
        try {
          pathUri = XmldbURI.xmldbUriFor(context.getModuleLoadPath()).resolveCollectionPath(pathUri);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.