findExistingPage
public java.util.Optional<java.lang.String> findExistingPage(java.util.List<java.lang.String> pages)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
javax.xml.xpath.XPathExpressionException
Determines which page exists on the Mediawiki instance.
- Parameters:
pages
- the pages to check
- Returns:
- the first existing page
- Throws:
java.io.IOException
- if any I/O error occurs
javax.xml.parsers.ParserConfigurationException
- if a parser cannot be created
org.xml.sax.SAXException
- if any XML error occurs
javax.xml.xpath.XPathExpressionException
- if any error in an XPath expression occurs