1 16 package org.apache.cocoon.components.treeprocessor.sitemap; 17 18 import org.apache.avalon.framework.configuration.Configuration; 19 import org.apache.avalon.framework.thread.ThreadSafe; 20 import org.apache.cocoon.components.treeprocessor.AbstractProcessingNodeBuilder; 21 import org.apache.cocoon.components.treeprocessor.ProcessingNode; 22 import org.apache.cocoon.components.treeprocessor.variables.VariableResolverFactory; 23 24 29 30 public class MountNodeBuilder extends AbstractProcessingNodeBuilder implements ThreadSafe { 31 32 33 protected boolean hasParameters() { 34 return false; 35 } 36 37 public ProcessingNode buildNode(Configuration config) throws Exception { 38 39 MountNode node = new MountNode( 40 VariableResolverFactory.getResolver(config.getAttribute("uri-prefix"), manager), 41 VariableResolverFactory.getResolver(config.getAttribute("src"), manager), 42 this.treeBuilder.getProcessor().getWrappingProcessor(), 43 config.getAttributeAsBoolean("check-reload", true), 44 config.getAttributeAsBoolean("pass-through", false) 45 ); 46 return (this.treeBuilder.setupNode(node, config)); 47 } 48 } 49 | Popular Tags |