public class MBoxExperienceTagHandler extends AbstractTagHandler implements org.osgi.service.event.EventHandler, ContainerComponentProvider
This tag handler is registered against the markup of type < section data-cq-component="offer" >
in com.day.cq.wcm.designimporter.impl.TagHandlerProviderImpl. 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.
NAME_HINT_PROPERTY_KEY| Constructor and Description |
|---|
MBoxExperienceTagHandler() |
| Modifier and Type | Method and 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.
|
java.util.List<PageComponent> |
getOfferComponents() |
java.lang.String |
getSegment() |
void |
handleEvent(org.osgi.service.event.Event event) |
boolean |
isDefaultExperience() |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Callback to signal the encounter of a tag start.
|
boolean |
supportsContent(HTMLContentType htmlContentType)
Indicates whether the passed
HTMLContentType is supported or not |
endElement, getContent, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProviderpublic boolean isDefaultExperience()
public void beginHandling(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws DesignImportException
TagHandler
TagHandlers are registered against tag+attribute combination and are invoked by the HTMLContentHandler as and when it
encounters a tag matching the tag attribute combination the tag handler is registered with.
beginHandling in interface TagHandlerbeginHandling in class AbstractTagHandlerDesignImportExceptionpublic void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws DesignImportException,
UnsupportedTagContentException
TagHandlerOnce a tag handler begins handling, it receives the start tag events for all the nested tags within the purview of the tag this tag handler is registered against.
startElement in interface TagHandlerstartElement in class AbstractTagHandlerDesignImportExceptionUnsupportedTagContentExceptionpublic void characters(char[] ch,
int start,
int length)
throws DesignImportException
TagHandlercharacters in interface TagHandlercharacters in class AbstractTagHandlerDesignImportExceptionpublic void endHandling(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws DesignImportException
TagHandlerThis 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.
endHandling in interface TagHandlerendHandling in class AbstractTagHandlerDesignImportExceptionpublic boolean supportsContent(HTMLContentType htmlContentType)
HTMLContentProviderHTMLContentType is supported or notsupportsContent in interface HTMLContentProvidersupportsContent in class AbstractTagHandlerpublic java.util.List<PageComponent> getOfferComponents()
public java.lang.String getSegment()
public void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandler"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"