Package org.apache.jackrabbit.vault.util
Class RejectingEntityResolver
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.RejectingEntityResolver
-
- All Implemented Interfaces:
org.xml.sax.EntityResolver
public class RejectingEntityResolver extends java.lang.Object implements org.xml.sax.EntityResolver
Entity resolver that handles all entity resolution requests by returning an empty input source. This is to prevent "Arbitrary DTD inclusion in XML parsing".
-
-
Constructor Summary
Constructors Constructor Description RejectingEntityResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.InputSource
resolveEntity(java.lang.String publicId, java.lang.String systemId)
-
-
-
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 interfaceorg.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
-