Package org.apache.cocoon.environment

Examples of org.apache.cocoon.environment.URLFactorySourceResolver


        // Initialize logicsheet cache
        this.logicsheetCache = (Store) manager.lookup(Store.TRANSIENT_CACHE);

        // Initialize the URL factory source resolver
        this.urlFactory = (URLFactory)this.manager.lookup(URLFactory.ROLE);
        this.urlResolver = new URLFactorySourceResolver(this.urlFactory, manager);
    }
View Full Code Here


    this.manager = manager;
    URL url = urlFactory.getURL(systemId);
    this.source = new URLSource(url, manager);
    try {
      xsltProcessor = (XSLTProcessor)manager.lookup(XSLTProcessor.ROLE);
      xsltProcessor.setSourceResolver(new URLFactorySourceResolver(urlFactory, manager));
    }
    catch (ComponentException e) {
      getLogger().error("Cannot obtain XSLTProcessor component: " + e);
    }
  }
View Full Code Here

        // Initialize logicsheet cache
        this.logicsheetCache = (Store) manager.lookup(Store.ROLE);

        // Initialize the URL factory source resolver
        this.urlFactory = (URLFactory)this.manager.lookup(URLFactory.ROLE);
        this.urlResolver = new URLFactorySourceResolver(this.urlFactory, manager);
    }
View Full Code Here

        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);
                if (getLogger().isDebugEnabled()) {
                    getLogger().debug("Loading configuration from " + configSource.getSystemId());
                }
                configSource.toSAX(new ConfigurationParser());
            } catch (Exception e) {
View Full Code Here

        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);
                if (getLogger().isDebugEnabled()) {
                    getLogger().debug("Loading configuration from " + configSource.getSystemId());
                }
               
                this.properties = new Properties();
View Full Code Here

        // Initialize logicsheet cache
        this.logicsheetCache = (Store) manager.lookup(Store.TRANSIENT_CACHE);

        // Initialize the URL factory source resolver
        this.urlFactory = (URLFactory)this.manager.lookup(URLFactory.ROLE);
        this.urlResolver = new URLFactorySourceResolver(this.urlFactory, manager);
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.environment.URLFactorySourceResolver

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.