Class NonScriptTagHandler
- java.lang.Object
-
- com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
-
- com.day.cq.wcm.designimporter.parser.taghandlers.NonScriptTagHandler
-
- All Implemented Interfaces:
HTMLContentProvider,PageComponentProvider,TagHandler
public class NonScriptTagHandler extends AbstractTagHandler
This tag handler is used to bypass the script tags with type attribute defined different from text/javascript or application/javascript. This is useful for preserving client templates that are often specified within tags like < script type="text/x-template" >This tag handler is registered against the markup of type < script type="text/template" >. That implies this tag handler will come into action whenever the design importer framework encounters an HTML tag matching the rule this handler is defined against.
- See Also:
NonScriptTagHandlerFactory
-
-
Field Summary
-
Fields inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
NAME_HINT_PROPERTY_KEY
-
-
Constructor Summary
Constructors Constructor Description NonScriptTagHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginHandling(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.voidcharacters(char[] ch, int start, int length)Callback to signal the encounter of character content within tags.voidendHandling(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:TagHandlerCallback to signal the start of handling giving the tag handler a chance for running intialization routines.TagHandlers are registered against tag+attribute combination and are invoked by theHTMLContentHandleras and when it encounters a tag matching the tag attribute combination the tag handler is registered with.- Specified by:
beginHandlingin interfaceTagHandler- Overrides:
beginHandlingin classAbstractTagHandler
-
endHandling
public void endHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName)Description copied from interface:TagHandlerCallback 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:
endHandlingin interfaceTagHandler- Overrides:
endHandlingin classAbstractTagHandler
-
characters
public void characters(char[] ch, int start, int length) throws DesignImportExceptionDescription copied from interface:TagHandlerCallback to signal the encounter of character content within tags.- Specified by:
charactersin interfaceTagHandler- Overrides:
charactersin classAbstractTagHandler- Throws:
DesignImportException
-
-