Package org.ametys.cms.data
Class LocalMediaObjectHandler
java.lang.Object
org.apache.excalibur.xml.sax.ContentHandlerProxy
org.ametys.cms.data.LocalMediaObjectHandler
- All Implemented Interfaces:
ContentHandler
Proxy handler to enhance the rich text attachments.
Add the content id and the data path to the local attachment's fileref attribute
-
Constructor Summary
ConstructorDescriptionLocalMediaObjectHandler
(ContentHandler contentHandler, DataContext context) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
startElement
(String uri, String loc, String raw, Attributes attrs) Methods inherited from class org.apache.excalibur.xml.sax.ContentHandlerProxy
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
LocalMediaObjectHandler
Constructor- Parameters:
contentHandler
- the contentHandler to pass SAX events tocontext
- the context of the rich text to SAX
-
-
Method Details
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentHandlerProxy
- Throws:
SAXException
-