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
ConstructorsConstructorDescriptionLocalMediaObjectHandler(ContentHandler contentHandler, DataContext context) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidstartElement(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, startPrefixMappingMethods 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
-
LocalMediaObjectHandler
Constructor- Parameters:
contentHandler- the contentHandler to pass SAX events tocontext- the context of the rich text to SAX
-
-
Method Details
-
startElement
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classContentHandlerProxy- Throws:
SAXException
-