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
public class ImgTagHandler extends DefaultTagHandler
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:
ImgTagHandlerFactory
-
-
Field Summary
Fields Modifier and Type Field Description XSSAPI
xssAPI
-
Fields inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
NAME_HINT_PROPERTY_KEY
-
-
Constructor Summary
Constructors Constructor Description ImgTagHandler()
-
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.java.lang.String
getAlt()
java.lang.String
getHeight()
java.lang.String
getRawSrc()
java.lang.String
getTitle()
java.lang.String
getUsemap()
java.lang.String
getWidth()
boolean
isNormalizationRequired()
boolean
isRawSrcAbsolute()
void
setNormalizationPrefix(java.lang.String normalizationPrefix)
void
setNormalizationRequired(boolean normalizationRequired)
void
setXssAPI(XSSAPI xssAPI)
-
Methods inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.DefaultTagHandler
characters, endHandling
-
Methods inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
endElement, getContent, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider, startElement, supportsContent
-
-
-
-
Field Detail
-
xssAPI
public XSSAPI xssAPI
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
-
getAlt
public java.lang.String getAlt()
-
getWidth
public java.lang.String getWidth()
-
getHeight
public java.lang.String getHeight()
-
getUsemap
public java.lang.String getUsemap()
-
getRawSrc
public java.lang.String getRawSrc()
-
isRawSrcAbsolute
public boolean isRawSrcAbsolute()
-
setNormalizationPrefix
public void setNormalizationPrefix(java.lang.String normalizationPrefix)
-
isNormalizationRequired
public boolean isNormalizationRequired()
-
setNormalizationRequired
public void setNormalizationRequired(boolean normalizationRequired)
-
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 classDefaultTagHandler
-
setXssAPI
public void setXssAPI(XSSAPI xssAPI)
-
-