Package com.verisign.epp.util
Class EPPEntityResolver
java.lang.Object
com.verisign.epp.util.EPPEntityResolver
- All Implemented Interfaces:
EntityResolver
EPP Entity Resolver used to cache and load EPP XML
schemas from the classpath. The first time an
entity is encountered,
EPPEntityResolver
will attempt to load it from the classpath and
than store it in an internal cache. The cache
is a class attribute, so all instances of
EPPEntityResolver reference the same
cache.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveEntity(String aPublicId, String aSystemId) Implimentation of theEntityResolver.resolveEntitymethod, which is called before the parser loads an external entity.
-
Constructor Details
-
EPPEntityResolver
public EPPEntityResolver()
-
-
Method Details
-
resolveEntity
public InputSource resolveEntity(String aPublicId, String aSystemId) throws SAXException, IOException Implimentation of theEntityResolver.resolveEntitymethod, which is called before the parser loads an external entity. This method will implement the loading of the external entity from the classpath and cache entities in an internal cache. Additionally, if a customClassLoaderwas used to loadEPPEntityResolver, than the customClassLoaderwill be used afterClassLoader.getSystemResourceAsStream.- Specified by:
resolveEntityin interfaceEntityResolver- Parameters:
aPublicId- IgnoredaSystemId- Name of entity to load- Returns:
InputSourceinstance associated withaSystemId- Throws:
SAXException- Currently not thrown, but part of the interfaceIOException- Error loading the entity.
-