Class TitleTagHandler
java.lang.Object
com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
com.day.cq.wcm.designimporter.parser.taghandlers.TitleTagHandler
- All Implemented Interfaces:
HTMLContentProvider,PageComponentProvider,TagHandler
The title tag handler is used to extract the page title of the
input HTML document.
This tag handler is registered against the markup of type invalid input: '<' title >. 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:
-
Field Summary
Fields inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
NAME_HINT_PROPERTY_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendHandling(String uri, String localName, String qName) Callback to signal the end of handling giving the tag handler a chance for finalizing things.getContent(HTMLContentType htmlContentType) Gets the content of the typeHTMLContentTypebooleansupportsContent(HTMLContentType htmlContentType) Indicates whether the passedHTMLContentTypeis supported or notMethods inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
beginHandling, characters, endElement, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider, startElement
-
Constructor Details
-
TitleTagHandler
public TitleTagHandler()
-
-
Method Details
-
getContent
Description copied from interface:HTMLContentProviderGets the content of the typeHTMLContentType- Specified by:
getContentin interfaceHTMLContentProvider- Overrides:
getContentin classAbstractTagHandler- Parameters:
htmlContentType-- Returns:
-
supportsContent
Description copied from interface:HTMLContentProviderIndicates whether the passedHTMLContentTypeis supported or not- Specified by:
supportsContentin interfaceHTMLContentProvider- Overrides:
supportsContentin classAbstractTagHandler- Parameters:
htmlContentType-- Returns:
-
endHandling
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- Parameters:
uri-localName-qName-- Throws:
DesignImportException
-