Class AbstractLinkedDataGenerator
java.lang.Object
org.broadleafcommerce.core.web.linkeddata.generator.AbstractLinkedDataGenerator
- All Implemented Interfaces:
LinkedDataGenerator
- Direct Known Subclasses:
CategoryLinkedDataGeneratorImpl,DefaultLinkedDataGeneratorImpl,HomepageLinkedDataGeneratorImpl,ProductLinkedDataGeneratorImpl
- Author:
- Nathan Moore (nathanmoore).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.common.web.BaseUrlResolverprotected org.broadleafcommerce.common.breadcrumbs.service.BreadcrumbServiceprotected static final Stringprotected org.springframework.core.env.Environmentprotected LinkedDataGeneratorExtensionManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancanHandle(jakarta.servlet.http.HttpServletRequest request) Determines whether or not this LinkedDataGenerator can handle the incoming request.voidgetLinkedDataJSON(String url, jakarta.servlet.http.HttpServletRequest request, org.codehaus.jettison.json.JSONArray schemaObjects) Gets the linked data for default pagesprotected abstract org.codehaus.jettison.json.JSONArraygetLinkedDataJsonInternal(String url, jakarta.servlet.http.HttpServletRequest request, org.codehaus.jettison.json.JSONArray schemaObjects) protected Stringprotected String
-
Field Details
-
DEFAULT_STRUCTURED_CONTENT_CONTEXT
- See Also:
-
environment
@Autowired protected org.springframework.core.env.Environment environment -
baseUrlResolver
protected org.broadleafcommerce.common.web.BaseUrlResolver baseUrlResolver -
breadcrumbService
protected org.broadleafcommerce.common.breadcrumbs.service.BreadcrumbService breadcrumbService -
extensionManager
-
-
Constructor Details
-
AbstractLinkedDataGenerator
public AbstractLinkedDataGenerator()
-
-
Method Details
-
getRequestParams
-
canHandle
public abstract boolean canHandle(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:LinkedDataGeneratorDetermines whether or not this LinkedDataGenerator can handle the incoming request.- Specified by:
canHandlein interfaceLinkedDataGenerator- 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:LinkedDataGeneratorGets the linked data for default pages- Specified by:
getLinkedDataJSONin interfaceLinkedDataGenerator- 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
-
getSiteBaseUrl
-
getStructuredDataContext
- Specified by:
getStructuredDataContextin interfaceLinkedDataGenerator
-