LocalResolver@Deprecated
public class SchemaResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver
EntityResolver. All
DTDs and schemas used to validate the web.xml file will re-directed
to a local file stored in the servlet-api.jar and jsp-api.jar.| Modifier and Type | Field and Description | 
|---|---|
| protected Digester | digesterDeprecated.  The digester instance for which this class is the entity resolver. | 
| protected java.util.HashMap<java.lang.String,java.lang.String> | entityValidatorDeprecated.  The URLs of dtds and schemas that have been registered, keyed by the
public identifier that corresponds. | 
| protected java.lang.String | schemaExtensionDeprecated.  Extension to make the difference between DTD and Schema. | 
| Constructor and Description | 
|---|
| SchemaResolver(Digester digester)Deprecated.  Create a new  EntityResolverthat will redirect
all remote dtds and schema to a local destination. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | register(java.lang.String publicId,
java.lang.String entityURL)Deprecated.  Register the specified DTD/Schema URL for the specified public
identifier. | 
| org.xml.sax.InputSource | resolveEntity(java.lang.String publicId,
java.lang.String systemId)Deprecated.  Resolve the requested external entity. | 
protected Digester digester
protected java.util.HashMap<java.lang.String,java.lang.String> entityValidator
protected java.lang.String schemaExtension
public SchemaResolver(Digester digester)
EntityResolver that will redirect
all remote dtds and schema to a local destination.digester - The digester instance.public void register(java.lang.String publicId,
            java.lang.String entityURL)
parse().
When adding a schema file (*.xsd), only the name of the file
will get added. If two schemas with the same name are added,
only the last one will be stored.publicId - Public identifier of the DTD to be resolvedentityURL - The URL to use for reading this DTDpublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                    java.lang.String systemId)
                                      throws org.xml.sax.SAXException
resolveEntity in interface org.xml.sax.EntityResolverpublicId - The public identifier of the entity being referencedsystemId - The system identifier of the entity being referencedorg.xml.sax.SAXException - if a parsing exception occursCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.