LocalResolver@Deprecated public class SchemaResolver extends Object implements 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 HashMap<String,String> | entityValidatorDeprecated.  The URLs of dtds and schemas that have been registered, keyed by the
 public identifier that corresponds. | 
| protected 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(String publicId,
        String entityURL)Deprecated.  Register the specified DTD/Schema URL for the specified public
 identifier. | 
| InputSource | resolveEntity(String publicId,
             String systemId)Deprecated.  Resolve the requested external entity. | 
protected Digester digester
protected HashMap<String,String> entityValidator
protected 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(String publicId, 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 InputSource resolveEntity(String publicId, String systemId) throws SAXException
resolveEntity in interface EntityResolverpublicId - The public identifier of the entity being referencedsystemId - The system identifier of the entity being referencedSAXException - if a parsing exception occursCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.