Class DefaultTagHandler
- java.lang.Object
-
- com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
-
- com.day.cq.wcm.designimporter.parser.taghandlers.DefaultTagHandler
-
- All Implemented Interfaces:
HTMLContentProvider
,PageComponentProvider
,TagHandler
- Direct Known Subclasses:
IFrameTagHandler
,ImgTagHandler
public class DefaultTagHandler extends AbstractTagHandler
The default tag handler for handling all the tags the handlers for which don't exist.This tag handler simply bypasses the flow, producing the same HTML as it received via SAX events.
- See Also:
DefaultTagHandlerFactory
-
-
Field Summary
-
Fields inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
NAME_HINT_PROPERTY_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultTagHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
Callback to signal the start of handling giving the tag handler a chance for running intialization routines.void
characters(char[] ch, int start, int length)
Callback to signal the encounter of character content within tags.void
endHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName)
Callback to signal the end of handling giving the tag handler a chance for finalizing things.-
Methods inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
endElement, getContent, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider, startElement, supportsContent
-
-
-
-
Method Detail
-
beginHandling
public void beginHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
Description copied from interface:TagHandler
Callback to signal the start of handling giving the tag handler a chance for running intialization routines.TagHandler
s are registered against tag+attribute combination and are invoked by theHTMLContentHandler
as and when it encounters a tag matching the tag attribute combination the tag handler is registered with.- Specified by:
beginHandling
in interfaceTagHandler
- Overrides:
beginHandling
in classAbstractTagHandler
-
endHandling
public void endHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName)
Description copied from interface:TagHandler
Callback to signal the end of handling giving the tag handler a chance for finalizing things.This is arguably the last callback a tag handler receives. After this, the current tag handler is popped out from the chain and the subsequent Tika events are directed to preceding tag handlers.
- Specified by:
endHandling
in interfaceTagHandler
- Overrides:
endHandling
in classAbstractTagHandler
-
characters
public void characters(char[] ch, int start, int length) throws DesignImportException
Description copied from interface:TagHandler
Callback to signal the encounter of character content within tags.- Specified by:
characters
in interfaceTagHandler
- Overrides:
characters
in classAbstractTagHandler
- Throws:
DesignImportException
-
-