use of org.apache.commons.digester3.ExtendedBaseRules in project knox by apache.
the class XmlGatewayDescriptorImporter method load.
@Override
public GatewayDescriptor load(Reader reader) throws IOException {
Digester digester = loader.newDigester(new ExtendedBaseRules());
digester.setValidating(false);
try {
GatewayDescriptor descriptor = digester.parse(reader);
return descriptor;
} catch (SAXException e) {
throw new IOException(e);
}
}
use of org.apache.commons.digester3.ExtendedBaseRules in project knox by apache.
the class XmlUrlRewriteRulesImporter method load.
@Override
public UrlRewriteRulesDescriptor load(Reader reader) throws IOException {
Digester digester = loader.newDigester(new ExtendedBaseRules());
digester.setValidating(false);
try {
UrlRewriteRulesDescriptor rules = digester.parse(reader);
return rules;
} catch (SAXException e) {
throw new IOException(e);
}
}
Aggregations