org.springframework.beans.factory.xml
Class BeansDtdResolver

java.lang.Object
  extended by org.springframework.beans.factory.xml.BeansDtdResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class BeansDtdResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

EntityResolver implementation for the Spring beans DTD, to load the DTD from the Spring class path (or JAR file).

Fetches "spring-beans-2.0.dtd" from the class path resource "/org/springframework/beans/factory/xml/spring-beans-2.0.dtd", no matter whether specified as some local URL that includes "spring-beans" in the DTD name or as "http://www.springframework.org/dtd/spring-beans-2.0.dtd".

Since:
04.06.2003
Author:
Juergen Hoeller, Colin Sampaleanu
See Also:
ResourceEntityResolver

Field Summary
private static java.lang.String DTD_EXTENSION
           
private static java.lang.String[] DTD_NAMES
           
private static Log logger
           
 
Constructor Summary
BeansDtdResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DTD_EXTENSION

private static final java.lang.String DTD_EXTENSION
See Also:
Constant Field Values

DTD_NAMES

private static final java.lang.String[] DTD_NAMES

logger

private static final Log logger
Constructor Detail

BeansDtdResolver

public BeansDtdResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws java.io.IOException
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object