Class LinkedDataProcessor
java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagReplacementProcessor
org.broadleafcommerce.core.web.linkeddata.processor.LinkedDataProcessor
- All Implemented Interfaces:
org.broadleafcommerce.presentation.dialect.BroadleafProcessor,org.broadleafcommerce.presentation.dialect.BroadleafTagReplacementProcessor
@Component("blLinkedDataProcessor")
public class LinkedDataProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagReplacementProcessor
This processor replaces linkedData tags with metadata for search engine optimization. The
data is formatted to Schema.org and Google standards.
- Author:
- Jacob Mitash, Nathan Moore (nathanmoore).
-
Field Summary
FieldsFields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetData(jakarta.servlet.http.HttpServletRequest request) Get the metadata for the specific pagegetName()org.broadleafcommerce.presentation.model.BroadleafTemplateModelgetReplacementModel(String s, Map<String, String> map, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) Methods inherited from class org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagReplacementProcessor
getPrecedence, getPrefix, replacementNeedsProcessing
-
Field Details
-
linkedDataGenerators
-
-
Constructor Details
-
LinkedDataProcessor
public LinkedDataProcessor()
-
-
Method Details
-
getReplacementModel
-
getData
Get the metadata for the specific page- Parameters:
request- the user request- Returns:
- the JSON string representation of the linked data
-
getName
-