org.openejb.alt.config
Class DTDResolver
java.lang.Object
org.openejb.alt.config.DTDResolver
- All Implemented Interfaces:
- org.xml.sax.EntityResolver
public class DTDResolver
- extends java.lang.Object
- implements org.xml.sax.EntityResolver
Loads DTDs from disk so you don't have to hit the web to validate
configuration files. This class will fail silently if the files aren't
available locally, and you'll end up hitting the web anyway.
- Version:
- $Revision: 1912 $
- Author:
- Aaron Mulder, David Blevins
Field Summary |
static java.util.HashMap |
dtds
|
Method Summary |
static byte[] |
getDtd(java.lang.String dtdName)
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dtds
public static java.util.HashMap dtds
DTDResolver
public DTDResolver()
getDtd
public static byte[] getDtd(java.lang.String dtdName)
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
java.io.IOException
Copyright © 1999-2011 OpenEJB. All Rights Reserved.