Package org.apache.cocoon.components.treeprocessor

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNode


                this.callNode.setParameters(params);
            }
            return this.callNode;
           
        } else {
            ProcessingNode URINode = new RedirectToURINode(
                VariableResolverFactory.getResolver(config.getAttribute("uri"), this.manager),
                config.getAttributeAsBoolean("session", false),
                config.getAttributeAsBoolean("global", false)
            );
            return this.treeBuilder.setupNode(URINode, config);
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 serializer at " + this.getLocation());
                    }
                    return viewNode.invoke(env, context);
                }
            }
        }
        // Perform link translation if requested
        if (env.getObjectModel().containsKey(Constants.LINK_OBJECT)) {
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

    }

    environment.setAttribute("bean-dict", bizData);
    environment.setAttribute("kont", continuation);

    ProcessingNode pipeline
      = resources.getNodeByName(MapStackResolver.unescape(name));

    if (pipelineArgs != null)
      ctx.pushMap(pipelineArgs);
    try {
      pipeline.invoke(environment, ctx);
    }
    finally {
      environment.removeAttribute("bean-dict");
      environment.removeAttribute("kont");
      if (pipelineArgs != null)
View Full Code Here

            }
        }
       
        // Bug #7196 : Some parts matched the view : jump to that view
        if (actualParts != this.allParts) {
            ProcessingNode viewNode = (ProcessingNode)this.viewNodes.get(cocoonView);
            if (viewNode != null) {
                if (infoEnabled) {
                    getLogger().info("Jumping to view '" + cocoonView + "' from aggregate part at " + this.getLocation());
                }
                return viewNode.invoke(env, context);
            }           
        }

        // Check aggregate-level view
        if (cocoonView != null && this.viewNodes != null) {
            ProcessingNode viewNode = (ProcessingNode)this.viewNodes.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

                this.callNode.setParameters(params);
            }
            return this.callNode;
           
        } else {
            ProcessingNode URINode = new RedirectToURINode(
                config.getAttribute("uri"),
                config.getAttributeAsBoolean("session", false)
            );
            return this.treeBuilder.setupNode(URINode, config);
View Full Code Here

        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

        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

TOP

Related Classes of org.apache.cocoon.components.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.