Package org.restlet.engine.util
Class DefaultSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.restlet.engine.util.DefaultSaxHandler
- All Implemented Interfaces:
LSResourceResolver,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
A Utility class which extends the provided
DefaultHandler and
implements the LSResourceResolver interface. All the
methods of this class do nothing besides generating log messages.- Author:
- Raif S. Naffah, Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidresolveEntity(String publicId, String systemId) Allow the application to resolve external resources.voidskippedEntity(String name) voidMethods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, startDocument, startElement, startPrefixMapping, unparsedEntityDeclMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DefaultSaxHandler
public DefaultSaxHandler()Trivial constructor.
-
-
Method Details
-
error
- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Overrides:
fatalErrorin classDefaultHandler- Throws:
SAXException
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classDefaultHandler- Throws:
IOExceptionSAXException
-
resolveResource
public LSInput resolveResource(String type, String namespaceUri, String publicId, String systemId, String baseUri) Allow the application to resolve external resources.This implementation always returns a
null.- Specified by:
resolveResourcein interfaceLSResourceResolver- Parameters:
type- The type of the resource being resolved.namespaceUri- The namespace of the resource being resolved.publicId- The public identifier.systemId- The system identifier.baseUri- The absolute base URI of the resource being parsed.- Returns:
- Always
null.
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin classDefaultHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Overrides:
warningin classDefaultHandler- Throws:
SAXException
-