Package org.forgerock.util.xml
Class XMLHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.forgerock.util.xml.XMLHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class XMLHandler extends DefaultHandler
This is a custom XML handler to load the dtds from the classpath This should be used by all the xml parsing document builders to set the default entity resolvers. This will avoid to have the dtds having specified in a fixed directory that will get replaced during installation This will need to specify the dtds as follows jar://com/sun/identity/sm/sms.dtd Bundle all the dtds along with the jar files and
-
-
Constructor Summary
Constructors Constructor Description XMLHandler()
Creates a new XML handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSource
resolveEntity(String aPublicID, String aSystemID)
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String aPublicID, String aSystemID)
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classDefaultHandler
-
-