Package org.apache.cocoon.treeprocessor

Examples of org.apache.cocoon.treeprocessor.ProcessingNode


        PipelineNode node = new PipelineNode();
        this.treeBuilder.setupNode(node, config);

        node.setInternalOnly(config.getAttributeAsBoolean("internal-only", false));

        ProcessingNode error404Handler = null;
        ProcessingNode error500Handler = null;
       
        Configuration[] childConfigs = config.getChildren();
        List children = new ArrayList();
       
        childLoop : for (int i = 0; i < childConfigs.length; i++) {
View Full Code Here


           
            String cocoonView = env.getView();
            if (cocoonView != null) {
           
                // Get view node
                ProcessingNode viewNode = (ProcessingNode)this.views.get(cocoonView);
               
                if (viewNode != null) {
                    if (getLogger().isInfoEnabled()) {
                        getLogger().info("Jumping to view " + cocoonView + " from generator at " + this.getLocation());
                    }
                    return viewNode.invoke(env, context);
                }
            }
        }
       
        // Return false to contine sitemap invocation
View Full Code Here

            }
        }
       
        // Check aggregate-level view
        if (cocoonView != null && this.views != null) {
            ProcessingNode viewNode = (ProcessingNode)this.views.get(cocoonView);
            if (viewNode != null) {
                if (infoEnabled) {
                    getLogger().info("Jumping to view '" + cocoonView + "' from aggregate at " + this.getLocation());
                }
                return viewNode.invoke(env, context);
            }
        }
       
        // Return false to continue sitemap invocation
        return false;
View Full Code Here

        if (this.views != null) {
            String cocoonView = env.getView();
            if (cocoonView != null) {
               
                // Get view node
                ProcessingNode viewNode = (ProcessingNode)this.views.get(cocoonView);
               
                if (viewNode != null) {
                    if (getLogger().isInfoEnabled()) {
                        getLogger().info("Jumping to view " + cocoonView + " from transformer at " + this.getLocation());
                    }
                    return viewNode.invoke(env, context);
                }
            }
        }
       
        // Return false to contine sitemap invocation
View Full Code Here

    public ProcessingNode buildNode(Configuration config) throws Exception {
       
        ProcessingNode[] children = this.buildChildNodes(config);
       
        ProcessingNode pipelines = null;
       
        for (int i = 0; i < children.length; i++) {
            if (children[i] instanceof PipelinesNode) {
                if (pipelines != null) {
                    String msg = "Only one 'pipelines' is allowed, at " + config.getLocation();
View Full Code Here

        if (this.views != null) {
            String cocoonView = env.getView();
            if (cocoonView != null) {
               
                // Get view node
                ProcessingNode viewNode = (ProcessingNode)this.views.get(cocoonView);
               
                if (viewNode != null) {
                    if (getLogger().isInfoEnabled()) {
                        getLogger().info("Jumping to view " + cocoonView + " from serializer at " + this.getLocation());
                    }
                    return viewNode.invoke(env, context);
                }
            }
        }

        // Perform link translation if requested
View Full Code Here

    public ProcessingNode buildNode(Configuration config) throws Exception {
       
        // Is it a redirect to resource ?
        String uri = config.getAttribute("uri", null);
        if (uri != null) {
            ProcessingNode URINode = new RedirectToURINode(uri, config.getAttributeAsBoolean("session", false));  
            return this.treeBuilder.setupNode(URINode, config);
           
        } else {
            this.resourceName = config.getAttribute("resource");
            this.callNode = new CallNode();
View Full Code Here

TOP

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

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.