Package com.verisign.epp.util
Class EPPDisabledEntityResolver
java.lang.Object
com.verisign.epp.util.EPPDisabledEntityResolver
- All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLEntityResolver,EntityResolver
public class EPPDisabledEntityResolver
extends Object
implements org.apache.xerces.xni.parser.XMLEntityResolver, EntityResolver
Entity resolver that throws an exception for all methods to ensure that any
attempt to resolve an entity fails.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EPPSchemaParsingEntityResolver object. -
Method Summary
Modifier and TypeMethodDescriptionresolveEntity(String aPublicId, String aSystemId) Resolves the entity passed in when parsing the instance document.org.apache.xerces.xni.parser.XMLInputSourceresolveEntity(org.apache.xerces.xni.XMLResourceIdentifier aXMLResourceIdentifier) Resolves the entity passed in when parsing the instance document.
-
Constructor Details
-
EPPDisabledEntityResolver
public EPPDisabledEntityResolver()Creates a new EPPSchemaParsingEntityResolver object.
-
-
Method Details
-
resolveEntity
public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier aXMLResourceIdentifier) throws org.apache.xerces.xni.XNIException, IOException Resolves the entity passed in when parsing the instance document. Will throw anIOException.- Specified by:
resolveEntityin interfaceorg.apache.xerces.xni.parser.XMLEntityResolver- Parameters:
aXMLResourceIdentifier- XML schema to load- Returns:
- Nothing will be returned, since it will throw an
IOException. - Throws:
org.apache.xerces.xni.XNIException- Never thrownIOException- Thrown with the message "resolving entity disallowed".
-
resolveEntity
public InputSource resolveEntity(String aPublicId, String aSystemId) throws SAXException, IOException Resolves the entity passed in when parsing the instance document. Will throw anSAXException.- Specified by:
resolveEntityin interfaceEntityResolver- Parameters:
aPublicId- Public identifier of entityaSystemId- System identifier of entity- Returns:
- Nothing will be returned, since it will throw an
SAXException. - Throws:
SAXException- Thrown with the message "resolving entity disallowed".IOException- Not thrownorg.apache.xerces.xni.XNIException- Not thrown
-