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
public class TitleTagHandler extends AbstractTagHandler
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 < 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:
TitleTagHandlerFactory
-
-
Field Summary
-
Fields inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
NAME_HINT_PROPERTY_KEY
-
-
Constructor Summary
Constructors Constructor Description TitleTagHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endHandling(String uri, String localName, String qName)
Callback to signal the end of handling giving the tag handler a chance for finalizing things.Object
getContent(HTMLContentType htmlContentType)
Gets the content of the typeHTMLContentType
boolean
supportsContent(HTMLContentType htmlContentType)
Indicates whether the passedHTMLContentType
is supported or not-
Methods inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
beginHandling, characters, endElement, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider, startElement
-
-
-
-
Method Detail
-
getContent
public Object getContent(HTMLContentType htmlContentType)
Description copied from interface:HTMLContentProvider
Gets the content of the typeHTMLContentType
- Specified by:
getContent
in interfaceHTMLContentProvider
- Overrides:
getContent
in classAbstractTagHandler
- Returns:
-
supportsContent
public boolean supportsContent(HTMLContentType htmlContentType)
Description copied from interface:HTMLContentProvider
Indicates whether the passedHTMLContentType
is supported or not- Specified by:
supportsContent
in interfaceHTMLContentProvider
- Overrides:
supportsContent
in classAbstractTagHandler
- Returns:
-
endHandling
public void endHandling(String uri, String localName, String qName) throws DesignImportException
Description copied from interface:TagHandler
Callback 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:
endHandling
in interfaceTagHandler
- Overrides:
endHandling
in classAbstractTagHandler
- Throws:
DesignImportException
-
-