@Extension public class XMLEntityResolver extends hudson.util.io.ParserConfigurator implements EntityResolver
Basically, it provides the possibility to intercept online DTD lookups and instead do offline lookup by redirecting to a local directory where .dtd's are stored (useful when parsing testng-results.xml - which points to testng.org)
Constructor and Description |
---|
XMLEntityResolver() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.dom4j.io.SAXReader reader,
Object context)
Install EntityResolver for resolving DTDs, which are in files created by TestNG.
|
InputSource |
resolveEntity(String publicId,
String systemId)
Intercepts the lookup of publicId, systemId
|
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException
public void configure(org.dom4j.io.SAXReader reader, Object context)
configure
in class hudson.util.io.ParserConfigurator
Copyright © 2014. All rights reserved.