Package org.apache.cocoon.treeprocessor

Examples of org.apache.cocoon.treeprocessor.TreeProcessor


      throws Exception {
       
        List mapStack = context.getMapStack();
       
        String resolvedSource = this.source.resolve(mapStack);
        TreeProcessor processor = (TreeProcessor)processors.get(resolvedSource);
        if (processor == null) {
            processor = getProcessor(resolvedSource);
        }
       
        String resolvedPrefix = this.prefix.resolve(mapStack);

        String oldPrefix = env.getURIPrefix();
        String oldURI    = env.getURI();
        try {
            env.changeContext(resolvedPrefix, resolvedSource);

            if (context.isInternalRequest()) {
                // Propagate pipelines
                return processor.process(env, context.getStreamPipeline(), context.getEventPipeline());
            } else {
                // Processor will create its own pipelines
                return processor.process(env);
            }
           
        } finally {
            // Restore context
            env.setContext(oldPrefix, oldURI);
View Full Code Here


            context.recompose(this.manager);
        }
    }
   
    private synchronized TreeProcessor getProcessor(String source) throws Exception {
        TreeProcessor processor = (TreeProcessor)processors.get(source);
       
        if (processor == null) {
           
            processor = this.parentProcessor.createChildProcessor(this.manager, this.language);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.treeprocessor.TreeProcessor

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.