Package org.restlet.engine.util
Class DefaultSaxHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.restlet.engine.util.DefaultSaxHandler
-
- All Implemented Interfaces:
org.w3c.dom.ls.LSResourceResolver,org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
public class DefaultSaxHandler extends org.xml.sax.helpers.DefaultHandler implements org.w3c.dom.ls.LSResourceResolverA Utility class which extends the providedDefaultHandlerand implements theLSResourceResolverinterface. All the methods of this class do nothing besides generating log messages.- Author:
- Raif S. Naffah, Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description DefaultSaxHandler()Trivial constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException x)voidfatalError(org.xml.sax.SAXParseException x)org.xml.sax.InputSourceresolveEntity(java.lang.String publicId, java.lang.String systemId)org.w3c.dom.ls.LSInputresolveResource(java.lang.String type, java.lang.String namespaceUri, java.lang.String publicId, java.lang.String systemId, java.lang.String baseUri)Allow the application to resolve external resources.voidskippedEntity(java.lang.String name)voidwarning(org.xml.sax.SAXParseException x)
-
-
-
Method Detail
-
error
public void error(org.xml.sax.SAXParseException x) throws org.xml.sax.SAXException- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Overrides:
errorin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
fatalError
public void fatalError(org.xml.sax.SAXParseException x) throws org.xml.sax.SAXException- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Overrides:
fatalErrorin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException- Specified by:
resolveEntityin interfaceorg.xml.sax.EntityResolver- Overrides:
resolveEntityin classorg.xml.sax.helpers.DefaultHandler- Throws:
java.io.IOExceptionorg.xml.sax.SAXException
-
resolveResource
public org.w3c.dom.ls.LSInput resolveResource(java.lang.String type, java.lang.String namespaceUri, java.lang.String publicId, java.lang.String systemId, java.lang.String baseUri)Allow the application to resolve external resources.This implementation always returns a
null.- Specified by:
resolveResourcein interfaceorg.w3c.dom.ls.LSResourceResolver- 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
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException- Specified by:
skippedEntityin interfaceorg.xml.sax.ContentHandler- Overrides:
skippedEntityin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
warning
public void warning(org.xml.sax.SAXParseException x) throws org.xml.sax.SAXException- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Overrides:
warningin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
-