Examples of newModuleInvoke()


Examples of com.marklogic.xcc.Session.newModuleInvoke()

        try {
            session = contentSource.newSession();
            String urisModule = options.getModuleRoot()
                    + options.getUrisModule();
            logger.info("invoking module " + urisModule);
            Request req = session.newModuleInvoke(urisModule);
            // NOTE: collection will be treated as a CWSV
            req.setNewStringVariable("URIS", collection);
            // TODO support DIRECTORY as type
            req.setNewStringVariable("TYPE",
                    TransformOptions.COLLECTION_TYPE);
View Full Code Here

Examples of com.marklogic.xcc.Session.newModuleInvoke()

        Thread.yield();
        Session session = null;
        try {
            String moduleUri = factory.getModuleUri();
            session = factory.newSession();
            Request request = session.newModuleInvoke(moduleUri);
            request.setNewStringVariable("URI", inputUri);
            return session.submitRequest(request).asString();
        } finally {
            if (null != session) {
                session.close();
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.