org.broadleafcommerce.core.web.processor
Class TwitterDataProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementProcessor
org.broadleafcommerce.core.web.processor.TwitterDataProcessor
- All Implemented Interfaces:
- Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor
@Component(value="blTwitterDataProcessor")
public class TwitterDataProcessor
- extends org.thymeleaf.processor.element.AbstractElementProcessor
Processor that creates meta-tags with Twitter Data.
This processor is to be used within
context.
- twitterSite - Optional, @username for the website used in the card footer.
- twitterCreator - Optional, @username for the content creator / author.
- twitterCard - Optional, If no twitter:card value is set, twitter will default to a summary card.
- twitterUrl - Canonical URL of the card content.
- twitterTitle - Title should be concise and will be truncated at 70 characters by twitter.
- twitterDescription - A description that concisely summarizes the content of the page, as appropriate for presentation within a Tweet.
- twitterImage - Optional, URL to a unique image representing the content of the page.
- Author:
- Jerry Ocanas (jocanas)
|
Constructor Summary |
TwitterDataProcessor()
Sets the name of this processor to be used in Thymeleaf template |
| Methods inherited from class org.thymeleaf.processor.element.AbstractElementProcessor |
doProcess, getMatcher |
| Methods inherited from class org.thymeleaf.processor.AbstractProcessor |
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwitterDataProcessor
public TwitterDataProcessor()
- Sets the name of this processor to be used in Thymeleaf template
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor
processElement
protected org.thymeleaf.processor.ProcessorResult processElement(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
- Specified by:
processElement in class org.thymeleaf.processor.element.AbstractElementProcessor
getDefaultSite
public String getDefaultSite()
setDefaultSite
public void setDefaultSite(String defaultSite)
getDefaultCreator
public String getDefaultCreator()
setDefaultCreator
public void setDefaultCreator(String defaultCreator)
getDefaultImage
public String getDefaultImage()
setDefaultImage
public void setDefaultImage(String defaultImage)
createMetaTagElement
protected org.thymeleaf.dom.Element createMetaTagElement(String name,
String content)
Copyright © 2012. All Rights Reserved.