@Service(value="blHomepageLinkedDataGenerator") public class HomepageLinkedDataGeneratorImpl extends AbstractLinkedDataGenerator
See http://schema.org/Organization, http://schema.org/ContactPoint, http://schema.org/WebSite, and http://schema.org/SearchAction
baseUrlResolver, breadcrumbService, DEFAULT_STRUCTURED_CONTENT_CONTEXT, environment, extensionManager| Constructor and Description |
|---|
HomepageLinkedDataGeneratorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected org.codehaus.jettison.json.JSONArray |
addContactData(javax.servlet.http.HttpServletRequest request) |
protected org.codehaus.jettison.json.JSONObject |
addOrganizationData(javax.servlet.http.HttpServletRequest request)
Generates an object representing the Schema.org organization
|
protected org.codehaus.jettison.json.JSONObject |
addPotentialActions(javax.servlet.http.HttpServletRequest request) |
protected org.codehaus.jettison.json.JSONArray |
addSocialMediaData(javax.servlet.http.HttpServletRequest request)
Generates a JSON array of the organization's social media sites
|
protected org.codehaus.jettison.json.JSONObject |
addWebSiteData(javax.servlet.http.HttpServletRequest request)
Generates an object representing the Schema.org WebSite
|
boolean |
canHandle(javax.servlet.http.HttpServletRequest request)
Determines whether or not this LinkedDataGenerator can handle the incoming request.
|
protected org.codehaus.jettison.json.JSONArray |
getLinkedDataJsonInternal(String url,
javax.servlet.http.HttpServletRequest request,
org.codehaus.jettison.json.JSONArray schemaObjects) |
protected String |
getLogoUrl()
Generates an object representing the Schema.org image for the site logo
|
protected String |
getSiteCustomerServiceNumber() |
protected String |
getSiteLogo() |
protected String |
getSiteName() |
protected String |
getSiteSearchUri() |
protected String |
getSiteSocialAccounts() |
protected boolean |
siteHasCustomerServiceNumber() |
protected boolean |
siteHasSocialLinks() |
getLinkedDataJSON, getRequestParams, getRequestUri, getSiteBaseUrl, getStructuredDataContextpublic boolean canHandle(javax.servlet.http.HttpServletRequest request)
LinkedDataGeneratorcanHandle in interface LinkedDataGeneratorcanHandle in class AbstractLinkedDataGeneratorprotected 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
getLinkedDataJsonInternal in class AbstractLinkedDataGeneratororg.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONObject addOrganizationData(javax.servlet.http.HttpServletRequest request)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONArray addContactData(javax.servlet.http.HttpServletRequest request)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONObject addWebSiteData(javax.servlet.http.HttpServletRequest request)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected String getLogoUrl() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONArray addSocialMediaData(javax.servlet.http.HttpServletRequest request)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONObject addPotentialActions(javax.servlet.http.HttpServletRequest request)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected boolean siteHasCustomerServiceNumber()
protected boolean siteHasSocialLinks()
protected String getSiteLogo()
protected String getSiteCustomerServiceNumber()
protected String getSiteSocialAccounts()
protected String getSiteSearchUri()
protected String getSiteName()
Copyright © 2025. All rights reserved.