Examples of buildNode()


Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

      Configuration childConfig = childConfigs[i];
      if (isChild(childConfig)) {

        ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
        if (builder instanceof HandleErrorsNodeBuilder) {
          handler = (HandleErrorsNode)builder.buildNode(childConfig);
        } else {
          // Regular builder
          children.add(builder.buildNode(childConfig));
        }
      }
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

        ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
        if (builder instanceof HandleErrorsNodeBuilder) {
          handler = (HandleErrorsNode)builder.buildNode(childConfig);
        } else {
          // Regular builder
          children.add(builder.buildNode(childConfig));
        }
      }
    }
        if (children.size() == 0) {
            String msg = "There must be at least one pipeline at " + config.getLocation();
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

            ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);

            if (builder instanceof HandleErrorsNodeBuilder) {
                // Error handler : check type
                HandleErrorsNode handler = (HandleErrorsNode)builder.buildNode(childConfig);
                int type = handler.getStatusCode();

                if ( (type == 404 && error404Handler != null) ||
                     (type == 500 && error500Handler != null) ) {
                    String msg = "Duplicate handle-errors at " + handler.getLocation();
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

                    throw new ConfigurationException(msg);
                }

            } else {
                // Regular builder
                children.add(builder.buildNode(childConfig));
            }
        }

        node.setChildren(toNodeArray(children));
        node.set404Handler(error404Handler);
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

        for (int i = 0; i < orderedNames.length; i++) {
            Configuration childConfig = config.getChild(orderedNames[i], false);
            if (childConfig != null) {
                ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
                // Don't build them since "pipelines" is not present in this list
                builder.buildNode(childConfig);
            }
        }
       
        ProcessingNode pipelines = null;
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

                        continue loop;
                    }
                }
               
                ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
                ProcessingNode node = builder.buildNode(childConfig);
                if (node instanceof PipelinesNode) {
                    if (pipelines != null) {
                        String msg = "Only one 'pipelines' is allowed, at " + childConfig.getLocation();
                        throw new ConfigurationException(msg);
                    }
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

      Configuration childConfig = childConfigs[i];
      if (isChild(childConfig)) {

        ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
        if (builder instanceof HandleErrorsNodeBuilder) {
          handler = (HandleErrorsNode)builder.buildNode(childConfig);
        } else {
          // Regular builder
          children.add(builder.buildNode(childConfig));
        }
      }
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

        ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
        if (builder instanceof HandleErrorsNodeBuilder) {
          handler = (HandleErrorsNode)builder.buildNode(childConfig);
        } else {
          // Regular builder
          children.add(builder.buildNode(childConfig));
        }
      }
    }
        if (children.size() == 0) {
            String msg = "There must be at least one pipeline at " + config.getLocation();
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

            if (isChild(childConfig)) {

                ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
                if (builder instanceof HandleErrorsNodeBuilder) {
                    // Error handler : check type
                    HandleErrorsNode handler = (HandleErrorsNode)builder.buildNode(childConfig);
                    int status = handler.getStatusCode();

          switch(status) {
              case -1: // main handler (needs generator)
                  if (mainHandler != null) {
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()

              default:
                throw new ConfigurationException("Unknown handle-errors type (" + type + ") at " + handler.getLocation());
          }
                } else {
                    // Regular builder
                    children.add(builder.buildNode(childConfig));
                }
            }
        }
        node.setChildren(toNodeArray(children));
        node.set404Handler(error404Handler);
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.