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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDelegatingEntityResolver(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_SUFFIXSuffix for DTD files.- See Also:
 
- 
XSD_SUFFIXSuffix for schema definition files.- See Also:
 
 
- 
- 
Constructor Details- 
DelegatingEntityResolverCreate a new DelegatingEntityResolver that delegates to a defaultBeansDtdResolverand a defaultPluggableSchemaResolver.Configures the PluggableSchemaResolverwith the suppliedClassLoader.- Parameters:
- classLoader- the ClassLoader to use for loading (can be- nullto use the default ClassLoader)
 
- 
DelegatingEntityResolverCreate a new DelegatingEntityResolver that delegates to the givenEntityResolvers.- Parameters:
- dtdResolver- the EntityResolver to resolve DTDs with
- schemaResolver- the EntityResolver to resolve XML schemas with
 
 
- 
- 
Method Details- 
resolveEntity@Nullable public InputSource resolveEntity(@Nullable String publicId, @Nullable String systemId) throws SAXException, IOException - Specified by:
- resolveEntityin interface- EntityResolver
- Throws:
- SAXException
- IOException
 
- 
toString
 
-