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 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 an IOException.
      Specified by:
      resolveEntity in interface org.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 thrown
      IOException - 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 an SAXException.
      Specified by:
      resolveEntity in interface EntityResolver
      Parameters:
      aPublicId - Public identifier of entity
      aSystemId - 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 thrown
      org.apache.xerces.xni.XNIException - Not thrown