Package org.apache.cocoon.sunshine.connector

Examples of org.apache.cocoon.sunshine.connector.ResourceConnector


            parameters = this.createParameters(parameters,
                                               this.handlerName,
                                               path,
                                               this.applicationName);
            DocumentFragment fragment;
            ResourceConnector connector = null;
            try {
                connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
                fragment = connector.loadXML(loadResourceType, null,
                                             loadResourceName, parameters);
                this.setXML(path, fragment);

            } catch (ComponentException ce) {
                throw new ProcessingException("Unable to lookup the resource connector.", ce);
View Full Code Here


            DocumentFragment fragment = this.getXML("/application" + path);
            if (fragment == null) {
                // create empty fake fragment
                fragment = XMLUtil.createDocument().createDocumentFragment();
            }
            ResourceConnector connector = null;
            try {
                connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
                connector.saveXML(saveResourceType, null,
                                  saveResourceName, parameters,
                                  fragment);

            } catch (ComponentException ce) {
                throw new ProcessingException("Unable to lookup the resource connector.", ce);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.sunshine.connector.ResourceConnector

Copyright © 2018 www.massapicom. 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.