Class UtilXml.LocalResolver

  • All Implemented Interfaces:
    org.xml.sax.EntityResolver
    Enclosing class:
    UtilXml

    public static class UtilXml.LocalResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    Local entity resolver to handle J2EE DTDs. With this a http connection to sun is not needed during deployment. Function boolean hadDTD() is here to avoid validation errors in descriptors that do not have a DOCTYPE declaration.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalResolver​(org.xml.sax.EntityResolver defaultResolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasDTD()
      Returns the boolean value to inform id DTD was found in the XML file or not
      org.xml.sax.InputSource resolveEntity​(java.lang.String publicId, java.lang.String systemId)
      Returns DTD inputSource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalResolver

        public LocalResolver​(org.xml.sax.EntityResolver defaultResolver)
    • Method Detail

      • resolveEntity

        public org.xml.sax.InputSource resolveEntity​(java.lang.String publicId,
                                                     java.lang.String systemId)
                                              throws org.xml.sax.SAXException,
                                                     java.io.IOException
        Returns DTD inputSource. If DTD was found in the dtds Map and inputSource was created flag hasDTD is set to true.
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Parameters:
        publicId - - Public ID of DTD
        systemId - - System ID of DTD
        Returns:
        InputSource of DTD
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
      • hasDTD

        public boolean hasDTD()
        Returns the boolean value to inform id DTD was found in the XML file or not
        Returns:
        boolean - true if DTD was found in XML