Package org.ametys.cms.data
Class HTMLLocalMediaObjectHandler
- java.lang.Object
-
- org.apache.excalibur.xml.sax.ContentHandlerProxy
-
- org.ametys.cms.data.HTMLLocalMediaObjectHandler
-
- All Implemented Interfaces:
ContentHandler
public class HTMLLocalMediaObjectHandler extends ContentHandlerProxy
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
Constructors Constructor Description HTMLLocalMediaObjectHandler(ContentHandler contentHandler, DataContext context)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstartElement(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
-
-
-
-
Constructor Detail
-
HTMLLocalMediaObjectHandler
public HTMLLocalMediaObjectHandler(ContentHandler contentHandler, DataContext context)
Constructor- Parameters:
contentHandler- the contentHandler to pass SAX events tocontext- the context of the rich text to SAX
-
-
Method Detail
-
startElement
public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classContentHandlerProxy- Throws:
SAXException
-
-