|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.xml.DelegatingEntityResolver
public class DelegatingEntityResolver
EntityResolver
implementation that delegates to a BeansDtdResolver
and a PluggableSchemaResolver
for DTDs and XML schemas, respectively.
BeansDtdResolver
,
PluggableSchemaResolver
Field Summary | |
---|---|
static String |
DTD_SUFFIX
Suffix for DTD files |
static String |
XSD_SUFFIX
Suffix for schema definition files |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
InputSource |
resolveEntity(String publicId,
String systemId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DTD_SUFFIX
public static final String XSD_SUFFIX
Constructor Detail |
---|
public DelegatingEntityResolver(ClassLoader classLoader)
BeansDtdResolver
and a default PluggableSchemaResolver
.
Configures the PluggableSchemaResolver
with the supplied
ClassLoader
.
classLoader
- the ClassLoader to use for loading
(can be null
) to use the default ClassLoader)public DelegatingEntityResolver(EntityResolver dtdResolver, EntityResolver schemaResolver)
EntityResolvers
.
dtdResolver
- the EntityResolver to resolve DTDs withschemaResolver
- the EntityResolver to resolve XML schemas withMethod Detail |
---|
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |