org.springframework.beans.factory.xml

Class DelegatingEntityResolver

  • java.lang.Object
    • org.springframework.beans.factory.xml.DelegatingEntityResolver
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String DTD_SUFFIX
      Suffix for DTD files.
      static java.lang.String XSD_SUFFIX
      Suffix for schema definition files.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DelegatingEntityResolver(java.lang.ClassLoader classLoader)
      Create a new DelegatingEntityResolver that delegates to a default BeansDtdResolver and a default PluggableSchemaResolver.
      DelegatingEntityResolver(org.xml.sax.EntityResolver dtdResolver, org.xml.sax.EntityResolver schemaResolver)
      Create a new DelegatingEntityResolver that delegates to the given EntityResolvers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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_SUFFIX

        public static final java.lang.String DTD_SUFFIX
        Suffix for DTD files.
        See Also:
        Constant Field Values
      • XSD_SUFFIX

        public static final java.lang.String XSD_SUFFIX
        Suffix for schema definition files.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DelegatingEntityResolver

        public DelegatingEntityResolver(@Nullable
                                        java.lang.ClassLoader classLoader)
        Create a new DelegatingEntityResolver that delegates to a default BeansDtdResolver and a default PluggableSchemaResolver.

        Configures the PluggableSchemaResolver with the supplied ClassLoader.

        Parameters:
        classLoader - the ClassLoader to use for loading (can be null) to use the default ClassLoader)
      • DelegatingEntityResolver

        public DelegatingEntityResolver(org.xml.sax.EntityResolver dtdResolver,
                                        org.xml.sax.EntityResolver schemaResolver)
        Create a new DelegatingEntityResolver that delegates to the given EntityResolvers.
        Parameters:
        dtdResolver - the EntityResolver to resolve DTDs with
        schemaResolver - the EntityResolver to resolve XML schemas with
    • Method Detail

      • resolveEntity

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

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