Class AbstractLinkedDataGenerator

java.lang.Object
org.broadleafcommerce.core.web.linkeddata.generator.AbstractLinkedDataGenerator
All Implemented Interfaces:
LinkedDataGenerator
Direct Known Subclasses:
CategoryLinkedDataGeneratorImpl, DefaultLinkedDataGeneratorImpl, HomepageLinkedDataGeneratorImpl, ProductLinkedDataGeneratorImpl

public abstract class AbstractLinkedDataGenerator extends Object implements LinkedDataGenerator
Author:
Nathan Moore (nathanmoore).
  • Field Details

  • Constructor Details

    • AbstractLinkedDataGenerator

      public AbstractLinkedDataGenerator()
  • Method Details

    • getRequestParams

      protected static Map<String,String[]> getRequestParams()
    • canHandle

      public abstract boolean canHandle(jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: LinkedDataGenerator
      Determines whether or not this LinkedDataGenerator can handle the incoming request.
      Specified by:
      canHandle in interface LinkedDataGenerator
      Returns:
      whether to handle the destination type
    • getLinkedDataJSON

      public void getLinkedDataJSON(String url, jakarta.servlet.http.HttpServletRequest request, org.codehaus.jettison.json.JSONArray schemaObjects) throws org.codehaus.jettison.json.JSONException
      Description copied from interface: LinkedDataGenerator
      Gets the linked data for default pages
      Specified by:
      getLinkedDataJSON in interface LinkedDataGenerator
      Throws:
      org.codehaus.jettison.json.JSONException
    • getLinkedDataJsonInternal

      protected abstract org.codehaus.jettison.json.JSONArray getLinkedDataJsonInternal(String url, jakarta.servlet.http.HttpServletRequest request, org.codehaus.jettison.json.JSONArray schemaObjects) throws org.codehaus.jettison.json.JSONException
      Throws:
      org.codehaus.jettison.json.JSONException
    • getRequestUri

      protected String getRequestUri()
    • getSiteBaseUrl

      protected String getSiteBaseUrl()
    • getStructuredDataContext

      public String getStructuredDataContext()
      Specified by:
      getStructuredDataContext in interface LinkedDataGenerator