Class ImgTagHandler
java.lang.Object
com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
com.day.cq.wcm.designimporter.parser.taghandlers.DefaultTagHandler
com.day.cq.wcm.designimporter.parser.taghandlers.ImgTagHandler
- All Implemented Interfaces:
HTMLContentProvider,PageComponentProvider,TagHandler
This tag handler is used to transform the src attribute within an img tag.
Since the images should continue to be referable, their src attribute values are prepended with the current design path. Note that design path is where the images are dumped during the import process.
- See Also:
-
Field Summary
FieldsFields inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
NAME_HINT_PROPERTY_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginHandling(String uri, String localName, String qName, Attributes atts) Callback to signal the start of handling giving the tag handler a chance for running intialization routines.getAlt()getTitle()getWidth()booleanbooleanvoidsetNormalizationPrefix(String normalizationPrefix) voidsetNormalizationRequired(boolean normalizationRequired) voidMethods inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.DefaultTagHandler
characters, endHandlingMethods inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
endElement, getContent, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider, startElement, supportsContent
-
Field Details
-
xssAPI
-
-
Constructor Details
-
ImgTagHandler
public ImgTagHandler()
-
-
Method Details
-
getTitle
-
getAlt
-
getWidth
-
getHeight
-
getUsemap
-
getRawSrc
-
isRawSrcAbsolute
public boolean isRawSrcAbsolute() -
setNormalizationPrefix
-
isNormalizationRequired
public boolean isNormalizationRequired() -
setNormalizationRequired
public void setNormalizationRequired(boolean normalizationRequired) -
beginHandling
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 classDefaultTagHandler- Parameters:
uri-localName-qName-atts-
-
setXssAPI
-