Class DelegatingEntityResolver
java.lang.Object
org.springframework.beans.factory.xml.DelegatingEntityResolver
- All Implemented Interfaces:
EntityResolver
- Direct Known Subclasses:
ResourceEntityResolver
EntityResolver implementation that delegates to a BeansDtdResolver
and a PluggableSchemaResolver for DTDs and XML schemas, respectively.- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller, Rick Evans
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingEntityResolver(@Nullable ClassLoader classLoader) Create a new DelegatingEntityResolver that delegates to a defaultBeansDtdResolverand a defaultPluggableSchemaResolver.DelegatingEntityResolver(EntityResolver dtdResolver, EntityResolver schemaResolver) Create a new DelegatingEntityResolver that delegates to the givenEntityResolvers. -
Method Summary
-
Field Details
-
DTD_SUFFIX
-
XSD_SUFFIX
-
-
Constructor Details
-
DelegatingEntityResolver
Create a new DelegatingEntityResolver that delegates to a defaultBeansDtdResolverand a defaultPluggableSchemaResolver.Configures the
PluggableSchemaResolverwith the suppliedClassLoader.- Parameters:
classLoader- the ClassLoader to use for loading (can benullto use the default ClassLoader)
-
DelegatingEntityResolver
Create a new DelegatingEntityResolver that delegates to the givenEntityResolvers.- Parameters:
dtdResolver- the EntityResolver to resolve DTDs withschemaResolver- the EntityResolver to resolve XML schemas with
-
-
Method Details
-
resolveEntity
public @Nullable InputSource resolveEntity(@Nullable String publicId, @Nullable String systemId) throws SAXException, IOException - Specified by:
resolveEntityin interfaceEntityResolver- Throws:
SAXExceptionIOException
-
toString
-