Package com.verisign.epp.util
Class EPPEntityResolver
- java.lang.Object
-
- com.verisign.epp.util.EPPEntityResolver
-
- All Implemented Interfaces:
org.xml.sax.EntityResolver
public class EPPEntityResolver extends java.lang.Object implements org.xml.sax.EntityResolverEPP Entity Resolver used to cache and load EPP XML schemas from the classpath. The first time an entity is encountered,EPPEntityResolverwill attempt to load it from the classpath and than store it in an internal cache. The cache is a class attribute, so all instances ofEPPEntityResolverreference the same cache.
-
-
Constructor Summary
Constructors Constructor Description EPPEntityResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.InputSourceresolveEntity(java.lang.String aPublicId, java.lang.String aSystemId)Implimentation of theEntityResolver.resolveEntitymethod, which is called before the parser loads an external entity.
-
-
-
Method Detail
-
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String aPublicId, java.lang.String aSystemId) throws org.xml.sax.SAXException, java.io.IOExceptionImplimentation 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 interfaceorg.xml.sax.EntityResolver- Parameters:
aPublicId- IgnoredaSystemId- Name of entity to load- Returns:
InputSourceinstance associated withaSystemId- Throws:
org.xml.sax.SAXException- Currently not thrown, but part of the interfacejava.io.IOException- Error loading the entity.
-
-