Package org.apache.jackrabbit.vault.util
Class RejectingEntityResolver
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.RejectingEntityResolver
-
- All Implemented Interfaces:
EntityResolver
public class RejectingEntityResolver extends Object implements 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 InputSource
resolveEntity(String publicId, String systemId)
-
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
-