public abstract class AbstractLinkedDataGenerator extends Object implements LinkedDataGenerator
| Modifier and Type | Field and Description |
|---|---|
protected BaseUrlResolver |
baseUrlResolver |
protected BreadcrumbService |
breadcrumbService |
protected static String |
DEFAULT_STRUCTURED_CONTENT_CONTEXT |
protected org.springframework.core.env.Environment |
environment |
protected LinkedDataGeneratorExtensionManager |
extensionManager |
| Constructor and Description |
|---|
AbstractLinkedDataGenerator() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canHandle(javax.servlet.http.HttpServletRequest request)
Determines whether or not this LinkedDataGenerator can handle the incoming request.
|
void |
getLinkedDataJSON(String url,
javax.servlet.http.HttpServletRequest request,
org.codehaus.jettison.json.JSONArray schemaObjects)
Gets the linked data for default pages
|
protected abstract org.codehaus.jettison.json.JSONArray |
getLinkedDataJsonInternal(String url,
javax.servlet.http.HttpServletRequest request,
org.codehaus.jettison.json.JSONArray schemaObjects) |
protected static Map<String,String[]> |
getRequestParams() |
protected String |
getRequestUri() |
protected String |
getSiteBaseUrl() |
String |
getStructuredDataContext() |
protected static final String DEFAULT_STRUCTURED_CONTENT_CONTEXT
@Autowired protected org.springframework.core.env.Environment environment
protected BaseUrlResolver baseUrlResolver
protected BreadcrumbService breadcrumbService
protected LinkedDataGeneratorExtensionManager extensionManager
public abstract boolean canHandle(javax.servlet.http.HttpServletRequest request)
LinkedDataGeneratorcanHandle in interface LinkedDataGeneratorpublic void getLinkedDataJSON(String url, javax.servlet.http.HttpServletRequest request, org.codehaus.jettison.json.JSONArray schemaObjects) throws org.codehaus.jettison.json.JSONException
LinkedDataGeneratorgetLinkedDataJSON in interface LinkedDataGeneratororg.codehaus.jettison.json.JSONExceptionprotected abstract org.codehaus.jettison.json.JSONArray getLinkedDataJsonInternal(String url, javax.servlet.http.HttpServletRequest request, org.codehaus.jettison.json.JSONArray schemaObjects) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected String getRequestUri()
protected String getSiteBaseUrl()
public String getStructuredDataContext()
getStructuredDataContext in interface LinkedDataGeneratorCopyright © 2023. All rights reserved.