Package org.apache.jackrabbit.vault.util
Class RejectingEntityDefaultHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.jackrabbit.vault.util.RejectingEntityDefaultHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Default handler with special 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 -
Method Summary
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
RejectingEntityDefaultHandler
public RejectingEntityDefaultHandler()
-
-
Method Details
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classDefaultHandler- Throws:
IOExceptionSAXException
-