org.openejb.config
Class DTDResolver

java.lang.Object
  extended byorg.openejb.config.DTDResolver
All Implemented Interfaces:
EntityResolver

public class DTDResolver
extends Object
implements 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.


Field Summary
static HashMap dtds
           
 
Constructor Summary
DTDResolver()
           
 
Method Summary
static byte[] getDtd(String dtdName)
           
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dtds

public static HashMap dtds
Constructor Detail

DTDResolver

public DTDResolver()
Method Detail

getDtd

public static byte[] getDtd(String dtdName)

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException


Copyright © 1999-2005 OpenEJB. All Rights Reserved.