diff options
author | David A. Madore <david+git@madore.org> | 2011-09-03 13:15:49 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2011-09-03 13:15:49 +0200 |
commit | c17d2165ea20325fc78f95791875ffa4c785e548 (patch) | |
tree | f9287f3be1fca4c84f71fa00d9d9778e354d9181 /org/madore/damlengine | |
parent | 97aabc8ab1def8bbc44166c50e045a488593bdaf (diff) | |
download | damlengine-c17d2165ea20325fc78f95791875ffa4c785e548.tar.gz damlengine-c17d2165ea20325fc78f95791875ffa4c785e548.tar.bz2 damlengine-c17d2165ea20325fc78f95791875ffa4c785e548.zip |
Remove now useless cruft ("daml magic" URLs).
Diffstat (limited to 'org/madore/damlengine')
-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); |