}
}
}
private void processPagespeedNode(XmlParser.Node node, AppEngineWebXml appEngineWebXml) {
Pagespeed pagespeed = new Pagespeed();
Iterator<XmlParser.Node> nodeIter = getNodeIterator(node, "url-blacklist");
while (nodeIter.hasNext()) {
XmlParser.Node subNode = nodeIter.next();
String urlMatcher = getTextNode(subNode);
pagespeed.addUrlBlacklist(urlMatcher);
}
nodeIter = getNodeIterator(node, "domain-to-rewrite");
while (nodeIter.hasNext()) {
XmlParser.Node subNode = nodeIter.next();
String domain = getTextNode(subNode);
pagespeed.addDomainToRewrite(domain);
}
nodeIter = getNodeIterator(node, "enabled-rewriter");
while (nodeIter.hasNext()) {
XmlParser.Node subNode = nodeIter.next();
String rewriter = getTextNode(subNode);
pagespeed.addEnabledRewriter(rewriter);
}
nodeIter = getNodeIterator(node, "disabled-rewriter");
while (nodeIter.hasNext()) {
XmlParser.Node subNode = nodeIter.next();
String rewriter = getTextNode(subNode);
pagespeed.addDisabledRewriter(rewriter);
}
appEngineWebXml.setPagespeed(pagespeed);
}