Interface LinkedDataGenerator
- All Known Implementing Classes:
AbstractLinkedDataGenerator,CategoryLinkedDataGeneratorImpl,DefaultLinkedDataGeneratorImpl,HomepageLinkedDataGeneratorImpl,ProductLinkedDataGeneratorImpl
public interface LinkedDataGenerator
This linked data generator provides structured metadata relevant for a page's SEO.
See http://schema.org/.
- Author:
- Jacob Mitash, Nathan Moore (nathanmoore).
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(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 pages
-
Method Details
-
canHandle
boolean canHandle(jakarta.servlet.http.HttpServletRequest request) Determines whether or not this LinkedDataGenerator can handle the incoming request.- Parameters:
request-- Returns:
- whether to handle the destination type
-
getLinkedDataJSON
void getLinkedDataJSON(String url, jakarta.servlet.http.HttpServletRequest request, org.codehaus.jettison.json.JSONArray schemaObjects) throws org.codehaus.jettison.json.JSONException Gets the linked data for default pages- Parameters:
url-request-- Throws:
org.codehaus.jettison.json.JSONException
-
getStructuredDataContext
String getStructuredDataContext()
-