com.highdeal.hci
Class EntityUnresolver

java.lang.Object
  extended by com.highdeal.hci.EntityUnresolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class EntityUnresolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

This entity resolver prevents the resolution of external/internal entities.

If an entity has to be resolved, this resolver throws a ForbiddenEntityResolutionException.


Nested Class Summary
static class EntityUnresolver.ForbiddenEntityResolutionException
          Exception thrown when an entity resolution is requested.
 
Field Summary
static EntityUnresolver INSTANCE
          An instance of Entity Unresolver which is thread safe.
 
Constructor Summary
EntityUnresolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EntityUnresolver INSTANCE
An instance of Entity Unresolver which is thread safe.

Constructor Detail

EntityUnresolver

public EntityUnresolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Throws:
org.xml.sax.SAXException
java.io.IOException

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)