Examples of toCollectionPathURI()


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

                    collectionPath.toString(),
                    properties.getProperty("user"),
                    properties.getProperty("password"));
                if (temp != null) {
                    current = temp;
                    newPath = collectionPath.toCollectionPathURI();
                    if (startGUI) {
                        frame.setPath(collectionPath.toCollectionPathURI());
                    }
                } else {
                    messageln("no such collection.");
View Full Code Here

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

                    properties.getProperty("password"));
                if (temp != null) {
                    current = temp;
                    newPath = collectionPath.toCollectionPathURI();
                    if (startGUI) {
                        frame.setPath(collectionPath.toCollectionPathURI());
                    }
                } else {
                    messageln("no such collection.");
                }
                getResources();
View Full Code Here

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

        try {
          pool = BrokerPool.getInstance();
          broker = pool.get(pool.getSecurityManager().getGuestSubject());
         
          XmldbURI uri = XmldbURI.xmldbUriFor(baseCollection);
          this.baseDir = ((NativeBroker)broker).getCollectionBinaryFileFsPath(uri.toCollectionPathURI());
          log("baseDir = " + baseDir.getAbsolutePath());
         
        } catch (Exception e) {
          throw new ServletException("Unable to access image collection: " + baseCollection, e);
        } finally {
View Full Code Here

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

    xslHandler = null;
        XmldbURI stylesheetUri = null;
        URI externalUri = null;
        try {
            stylesheetUri = XmldbURI.xmldbUriFor(stylesheet);
            if(!stylesheetUri.toCollectionPathURI().equals(stylesheetUri)) {
                externalUri = stylesheetUri.getXmldbURI();
            }
        } catch (final URISyntaxException e) {
            //could be an external URI!
            try {
View Full Code Here

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

            // Is the module source stored in the database?
            try {
                final XmldbURI locationUri = XmldbURI.xmldbUriFor(query);
                DocumentImpl sourceDoc = null;
                try {
                    sourceDoc = broker.getXMLResource(locationUri.toCollectionPathURI(), Lock.READ_LOCK);
                    if (sourceDoc == null)
                        {throw new ServletException("XQuery resource: " + query + " not found in database");}
                    if (sourceDoc.getResourceType() != DocumentImpl.BINARY_FILE ||
                            !"application/xquery".equals(sourceDoc.getMetadata().getMimeType()))
                        {throw new ServletException("XQuery resource: " + query + " is not an XQuery or " +
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.