public class

DelegatingEntityResolver

extends Object
implements EntityResolver
java.lang.Object
   ↳ org.springframework.beans.factory.xml.DelegatingEntityResolver
Known Direct Subclasses

Class Overview

EntityResolver implementation that delegates to a BeansDtdResolver and a PluggableSchemaResolver for DTDs and XML schemas, respectively.

Summary

Constants
String DTD_SUFFIX Suffix for DTD files
String XSD_SUFFIX Suffix for schema definition files
Public Constructors
DelegatingEntityResolver(ClassLoader classLoader)
Create a new DelegatingEntityResolver that delegates to a default BeansDtdResolver and a default PluggableSchemaResolver.
DelegatingEntityResolver(EntityResolver dtdResolver, EntityResolver schemaResolver)
Create a new DelegatingEntityResolver that delegates to the given EntityResolvers.
Public Methods
InputSource resolveEntity(String publicId, String systemId)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.xml.sax.EntityResolver

Constants

public static final String DTD_SUFFIX

Also: SpringBeans

Suffix for DTD files

Constant Value: ".dtd"

public static final String XSD_SUFFIX

Also: SpringBeans

Suffix for schema definition files

Constant Value: ".xsd"

Public Constructors

public DelegatingEntityResolver (ClassLoader classLoader)

Also: SpringBeans

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)

public DelegatingEntityResolver (EntityResolver dtdResolver, EntityResolver schemaResolver)

Also: SpringBeans

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

Public Methods

public InputSource resolveEntity (String publicId, String systemId)

Also: SpringBeans

public String toString ()