diff options
-rw-r--r-- | org/madore/damlengine/Resolver.java | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/org/madore/damlengine/Resolver.java b/org/madore/damlengine/Resolver.java index fa2f188..fdbfe97 100644 --- a/org/madore/damlengine/Resolver.java +++ b/org/madore/damlengine/Resolver.java @@ -117,27 +117,6 @@ public final class Resolver return systemId; } - protected String damlMagic(String uri) { - if ( uri.equals("x-daml-magic://daml/weblog/doindex.xml") ) - return "IGNORE"; - else if ( uri.equals("x-daml-magic://daml/weblog/domaxentries.xml") ) - return "INCLUDE"; - else if ( uri.equals("x-daml-magic://daml/weblog/maxentries.xml") ) - return "20"; - else if ( uri.equals("x-daml-magic://daml/weblog/domonth.xml") ) - return "IGNORE"; - else if ( uri.equals("x-daml-magic://daml/weblog/month.xml") ) - return ""; - else if ( uri.equals("x-daml-magic://daml/weblog/docategory.xml") ) - return "IGNORE"; - else if ( uri.equals("x-daml-magic://daml/weblog/category-en.xml") ) - return ""; - else if ( uri.equals("x-daml-magic://daml/weblog/category-fr.xml") ) - return ""; - else - return null; - } - // Interface LSResourceResolver public LSInput resolveResource(String type, @@ -145,10 +124,6 @@ public final class Resolver String publicId, String systemId, String baseURI) { - String str = damlMagic(systemId); - if ( str != null ) - return new DOMInputImpl(publicId, systemId, baseURI, - str, "UTF-8"); String resolved = resolve(namespaceURI, publicId, systemId, baseURI); return new DOMInputImpl(publicId, resolved, baseURI); } @@ -157,12 +132,6 @@ public final class Resolver public InputSource resolveEntity(String publicId, String systemId) throws SAXException { - String str = damlMagic(systemId); - if ( str != null ) { - InputSource source = new InputSource(new StringReader(str)); - source.setPublicId(publicId); - return source; - } String resolved = resolve(null, publicId, systemId, null); InputSource source = new InputSource(resolved); source.setPublicId(publicId); @@ -174,12 +143,6 @@ public final class Resolver public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException { - String str = damlMagic(systemId); - if ( str != null ) { - InputSource source = new InputSource(new StringReader(str)); - source.setPublicId(publicId); - return source; - } String resolved = resolve(null, publicId, systemId, baseURI); InputSource source = new InputSource(resolved); source.setPublicId(publicId); |