private void piperackLoadPipeline(XdmNode node) { String uri = node.getStringValue().trim(); String name = node.getAttributeValue(_name); int expires = -1; String s = node.getAttributeValue(_expires); if (s != null) { expires = Integer.parseInt(s); } if (name == null) { throw new XProcException(node, "You must specify a name for default pipelines."); } PipelineSource src = new PipelineSource(uri, name, expires); piperackDefaultPipelines.put(name, src); }
private void piperackLoadPipeline(XdmNode node) { String uri = node.getStringValue().trim(); String name = node.getAttributeValue(_name); int expires = -1; String s = node.getAttributeValue(_expires); if (s != null) { expires = Integer.parseInt(s); } if (name == null) { throw new XProcException(node, "You must specify a name for default pipelines."); } PipelineSource src = new PipelineSource(uri, name, expires); piperackDefaultPipelines.put(name, src); }