Examples of URLSource


Examples of org.apache.cocoon.components.source.URLSource

     */
    public Source resolve(String systemID)
      throws ProcessingException, SAXException, IOException {
       
        URL url = this.urlFactory.getURL(systemID);
        return new URLSource(url, this.manager);
    }
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

        if (this.context == null) {
            this.context = context;
            this.classpath = (String)context.get(Constants.CONTEXT_CLASSPATH);
            this.workDir = (File)context.get(Constants.CONTEXT_WORK_DIR);
            try {
                this.configurationFile = new URLSource((URL)context.get(Constants.CONTEXT_CONFIG_URL),
                                                       this.componentManager);
            } catch (IOException ioe) {
                getLogger().error("Could not open configuration file.", ioe);
                throw new ContextException("Could not open configuration file.", ioe);
            }
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

     */
    public Source resolve(String systemID)
      throws ProcessingException, SAXException, IOException {

        URL url = this.urlFactory.getURL(systemID);
        return new URLSource(url, this.manager);
    }
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

            this.workDir = (File)context.get(Constants.CONTEXT_WORK_DIR);
            try {
                // FIXME : add a configuration option for the refresh delay.
                // for now, hard-coded to 1 second.
                this.configurationFile = new DelayedRefreshSourceWrapper(
                    new URLSource((URL)context.get(Constants.CONTEXT_CONFIG_URL), this.componentManager),
                    1000L
                );

            } catch (IOException ioe) {
                getLogger().error("Could not open configuration file.", ioe);
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

        // Read the builtin languages definition file
        Configuration builtin;

        try {
            URLFactory factory = (URLFactory)this.manager.lookup(URLFactory.ROLE);
            URLSource source = new URLSource(factory.getURL(xconfURL), this.manager);
            try {
                SAXConfigurationHandler handler = new SAXConfigurationHandler();
                source.toSAX(handler);
                builtin = handler.getConfiguration();
            } finally {
                this.manager.release((Component)factory);
                if (source != null) {
                    source.recycle();
                }
            }
        } catch(Exception e) {
            String msg = "Error while reading treeprocessor.xconf : " + e.getMessage();
            getLogger().error(msg, e);
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

                    ComponentManager manager)
    throws MalformedURLException, IOException
  {
    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) {
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

     */
    public Source resolve(String systemID)
      throws ProcessingException, SAXException, IOException {

        URL url = this.urlFactory.getURL(systemID);
        return new URLSource(url, this.manager);
    }
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

     */
    public Source resolve(String systemID)
      throws ProcessingException, SAXException, IOException {
       
        URL url = this.urlFactory.getURL(systemID);
        return new URLSource(url, this.manager);
    }
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

        if (this.context == null) {
            this.context = context;
            this.classpath = (String)context.get(Constants.CONTEXT_CLASSPATH);
            this.workDir = (File)context.get(Constants.CONTEXT_WORK_DIR);
            try {
                this.configurationFile = new URLSource((URL)context.get(Constants.CONTEXT_CONFIG_URL),
                                                       this.componentManager);


            } catch (IOException ioe) {
                getLogger().error("Could not open configuration file.", ioe);
View Full Code Here

Examples of org.apache.cocoon.components.source.URLSource

            this.workDir = (File)context.get(Constants.CONTEXT_WORK_DIR);
            try {
                // FIXME : add a configuration option for the refresh delay.
                // for now, hard-coded to 1 second.
                this.configurationFile = new DelayedRefreshSourceWrapper(
                    new URLSource((URL)context.get(Constants.CONTEXT_CONFIG_URL), this.componentManager),
                    1000L
                );

            } catch (IOException ioe) {
                getLogger().error("Could not open configuration file.", ioe);
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.