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

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor

    DEFAULT_PRECEDENCE, DEFAULT_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    getData(jakarta.servlet.http.HttpServletRequest request)
    Get the metadata for the specific page
     
    org.broadleafcommerce.presentation.model.BroadleafTemplateModel
    getReplacementModel(String s, Map<String,String> map, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
     

    Methods inherited from class org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagReplacementProcessor

    getPrecedence, getPrefix, replacementNeedsProcessing

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LinkedDataProcessor

      public LinkedDataProcessor()
  • Method Details

    • getReplacementModel

      public org.broadleafcommerce.presentation.model.BroadleafTemplateModel getReplacementModel(String s, Map<String,String> map, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
    • getData

      protected String getData(jakarta.servlet.http.HttpServletRequest request)
      Get the metadata for the specific page
      Parameters:
      request - the user request
      Returns:
      the JSON string representation of the linked data
    • getName

      public String getName()