com.ibatis.db.sqlmap
Class SqlMapJarEntityResolver

java.lang.Object
  extended by com.ibatis.db.sqlmap.SqlMapJarEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

Custom EntityResolver that maps DTD requests for iBATIS DTDs to local resources.

Author:
Clinton Begin

Field Summary
private static java.lang.String DTD_PATH_SQL_MAP
           
private static java.lang.String DTD_PATH_SQL_MAP_CONFIG
           
private static java.lang.String SYSTEM_ID_SQL_MAP
           
private static java.lang.String SYSTEM_ID_SQL_MAP_CONFIG
           
 
Constructor Summary
SqlMapJarEntityResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Converts a public DTD into a local one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_ID_SQL_MAP_CONFIG

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

SYSTEM_ID_SQL_MAP

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

DTD_PATH_SQL_MAP_CONFIG

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

DTD_PATH_SQL_MAP

private static final java.lang.String DTD_PATH_SQL_MAP
See Also:
Constant Field Values
Constructor Detail

SqlMapJarEntityResolver

public SqlMapJarEntityResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException
Converts a public DTD into a local one

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - Unused but required by EntityResolver interface
systemId - The DTD that is being requested
Returns:
The InputSource for the DTD
Throws:
org.xml.sax.SAXException - If anything goes wrong