Package org.apache.cocoon.components.url

Examples of org.apache.cocoon.components.url.URLFactory


        } else {
            // New syntax: Element user-config contains URL
            configUrl = conf.getChild("user-config").getValue(null);
        }
        if(configUrl != null) {
            URLFactory urlFactory = null;
            Source configSource = null;
            try {
                urlFactory = (URLFactory)manager.lookup(URLFactory.ROLE);
                URLFactorySourceResolver urlResolver = new URLFactorySourceResolver(urlFactory, manager);
                configSource = urlResolver.resolve(configUrl);
View Full Code Here


    public void configure(Configuration config) throws ConfigurationException {

        String configUrl = config.getChild("jtidy-config").getValue(null);

        if(configUrl != null) {
            URLFactory urlFactory = null;
            Source configSource = null;
            try {
                urlFactory = (URLFactory)this.manager.lookup(URLFactory.ROLE);
                URLFactorySourceResolver urlResolver = new URLFactorySourceResolver(urlFactory, this.manager);
                configSource = urlResolver.resolve(configUrl);
View Full Code Here

    * Should be called after the setParser() and before the process()
    */
    public void loadStylesheet(InputSource sheetSource) throws SAXException, IOException {
        // Set the xslFile for the caching mechanism
        URL url = null;
        URLFactory urlFactory = null;
        try {
            urlFactory = (URLFactory)this.manager.lookup(URLFactory.ROLE);
            url = urlFactory.getURL(sheetSource.getSystemId());
        } catch (Exception e) {
            log.error("cannot obtain the URLFactory", e);
            throw new SAXException ("cannot obtain the URLFactory", e);
        } finally {
            this.manager.release(urlFactory);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.url.URLFactory

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.