Class LocalResolver
java.lang.Object
org.apache.tomcat.util.descriptor.LocalResolver
- All Implemented Interfaces:
- EntityResolver,- EntityResolver2
A resolver for locally cached XML resources.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetExternalSubset(String name, String baseURI) resolveEntity(String publicId, String systemId) resolveEntity(String name, String publicId, String base, String systemId) 
- 
Constructor Details- 
LocalResolverpublic LocalResolver(Map<String, String> publicIds, Map<String, String> systemIds, boolean blockExternal) Constructor providing mappings of public and system identifiers to local resources. Each map contains a mapping from a well-known identifier to a URL for a local resource path.- Parameters:
- publicIds- mapping of well-known public identifiers to local resources
- systemIds- mapping of well-known system identifiers to local resources
- blockExternal- are external resources blocked that are not well-known
 
 
- 
- 
Method Details- 
resolveEntity- Specified by:
- resolveEntityin interface- EntityResolver
- Throws:
- SAXException
- IOException
 
- 
resolveEntitypublic InputSource resolveEntity(String name, String publicId, String base, String systemId) throws SAXException, IOException - Specified by:
- resolveEntityin interface- EntityResolver2
- Throws:
- SAXException
- IOException
 
- 
getExternalSubset- Specified by:
- getExternalSubsetin interface- EntityResolver2
- Throws:
- SAXException
- IOException
 
 
-