Class XMLMapperEntityResolver

  • All Implemented Interfaces:
    org.xml.sax.EntityResolver

    public class XMLMapperEntityResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    Offline entity resolver for the MyBatis DTDs.
    • Field Detail

      • IBATIS_CONFIG_SYSTEM

        private static final java.lang.String IBATIS_CONFIG_SYSTEM
        See Also:
        Constant Field Values
      • IBATIS_MAPPER_SYSTEM

        private static final java.lang.String IBATIS_MAPPER_SYSTEM
        See Also:
        Constant Field Values
      • MYBATIS_CONFIG_SYSTEM

        private static final java.lang.String MYBATIS_CONFIG_SYSTEM
        See Also:
        Constant Field Values
      • MYBATIS_MAPPER_SYSTEM

        private static final java.lang.String MYBATIS_MAPPER_SYSTEM
        See Also:
        Constant Field Values
      • MYBATIS_CONFIG_DTD

        private static final java.lang.String MYBATIS_CONFIG_DTD
        See Also:
        Constant Field Values
      • MYBATIS_MAPPER_DTD

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

      • XMLMapperEntityResolver

        public XMLMapperEntityResolver()
    • 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 - The public id that is what comes after "PUBLIC"
        systemId - The system id that is what comes after the public id.
        Returns:
        The InputSource for the DTD
        Throws:
        org.xml.sax.SAXException - If anything goes wrong
      • getInputSource

        private org.xml.sax.InputSource getInputSource​(java.lang.String path,
                                                       java.lang.String publicId,
                                                       java.lang.String systemId)