|
Restlet Framework 2.2.1 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.restlet.engine.util.DefaultSaxHandler
public class DefaultSaxHandler
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.
Constructor Summary | |
---|---|
DefaultSaxHandler()
Trivial constructor. |
Method Summary | |
---|---|
void |
error(SAXParseException x)
|
void |
fatalError(SAXParseException x)
|
InputSource |
resolveEntity(String publicId,
String systemId)
|
LSInput |
resolveResource(String type,
String namespaceUri,
String publicId,
String systemId,
String baseUri)
Allow the application to resolve external resources. |
void |
skippedEntity(String name)
|
void |
warning(SAXParseException x)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSaxHandler()
Method Detail |
---|
public void error(SAXParseException x) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
public void fatalError(SAXParseException x) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity
in interface EntityResolver
resolveEntity
in class DefaultHandler
IOException
SAXException
public LSInput resolveResource(String type, String namespaceUri, String publicId, String systemId, String baseUri)
This implementation always returns a null
.
resolveResource
in interface LSResourceResolver
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.
null
.public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
skippedEntity
in class DefaultHandler
SAXException
public void warning(SAXParseException x) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
SAXException
|
Restlet Framework 2.2.1 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |