org.tuckey.web.filters.urlrewrite
Class ConfHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.tuckey.web.filters.urlrewrite.ConfHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class ConfHandler
- extends org.xml.sax.helpers.DefaultHandler
Handles DTD lookup and error handling for XML Conf parsing.
- Version:
- $Revision: 35 $ $Date: 2006-09-18 19:15:17 +1200 (Mon, 18 Sep 2006) $
- Author:
- Paul Tuckey
Constructor Summary |
ConfHandler(java.lang.String confSystemId)
|
Method Summary |
void |
error(org.xml.sax.SAXParseException ex)
|
void |
fatalError(org.xml.sax.SAXParseException ex)
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve the requested external entity. |
void |
warning(org.xml.sax.SAXParseException ex)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfHandler
public ConfHandler(java.lang.String confSystemId)
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
- Resolve the requested external entity.
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Overrides:
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
- Parameters:
publicId
- The public identifier of the entity being referencedsystemId
- The system identifier of the entity being referenced
- Throws:
org.xml.sax.SAXException
- if a parsing exception occurs
warning
public void warning(org.xml.sax.SAXParseException ex)
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Overrides:
warning
in class org.xml.sax.helpers.DefaultHandler
error
public void error(org.xml.sax.SAXParseException ex)
- Specified by:
error
in interface org.xml.sax.ErrorHandler
- Overrides:
error
in class org.xml.sax.helpers.DefaultHandler
fatalError
public void fatalError(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXException
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
- Overrides:
fatalError
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException