Nicola Ken Barozzi wrote:
If the @passthrough attribute is to be put in the <pipelines> section of the mounted sitemap, it seems easy: make the PipelinesNodeBuilder set a passthrough variable in the PipelinesNode, and have the PipelinesNode tell or not the last PipelineNode if it has to stop:
public void setChildren(ProcessingNode[] nodes) { // Mark the last pipeline so that it can throw a // ResourceNotFoundException //-> put an if() here ((PipelineNode)nodes[nodes.length - 1]).setLast(true); // super.setChildren(nodes); }
The point is that it makes sense for the mount node to set it, but I'm not sure which is the preferred way in the TreeProcessor to pass that info from the MountNodeBuilder to the PipelinesNode.
Suggestions?
What about letting MountNode catch the "No pipeline matched request" exception that is thrown during processor.buildPipeline() and processor.process() and decide whether or not to rethrow it there. Would that work?
-- Unico
