public class LinkedDataUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_CONTEXT |
| Constructor and Description |
|---|
LinkedDataUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.codehaus.jettison.json.JSONObject |
getDefaultBreadcrumbList(BreadcrumbService breadcrumbService,
String url)
Generates an object representing the Schema.org BreadcrumbList
|
protected static org.codehaus.jettison.json.JSONObject |
getDefaultOrganization(org.springframework.core.env.Environment environment,
String url)
Generates an object representing the Schema.org organization
|
protected static org.codehaus.jettison.json.JSONObject |
getDefaultWebSite(org.springframework.core.env.Environment environment,
String url)
Generates an object representing the Schema.org WebSite
|
protected static String |
getHomepageUrl(String urlFull)
Given any full page URL, gets the URL of the homepage
|
protected static org.codehaus.jettison.json.JSONObject |
getLogoObject(org.springframework.core.env.Environment environment)
Generates an object representing the Schema.org image for the site logo
|
protected static org.codehaus.jettison.json.JSONArray |
getSocialMediaList()
Generates a JSON array of the organization's social media sites
|
protected static final String DEFAULT_CONTEXT
protected static org.codehaus.jettison.json.JSONObject getDefaultOrganization(org.springframework.core.env.Environment environment,
String url)
throws org.codehaus.jettison.json.JSONException
url - The URL of the currently visited pageorg.codehaus.jettison.json.JSONExceptionprotected static org.codehaus.jettison.json.JSONObject getDefaultWebSite(org.springframework.core.env.Environment environment,
String url)
throws org.codehaus.jettison.json.JSONException
url - The URL of the currently visited pageorg.codehaus.jettison.json.JSONExceptionprotected static org.codehaus.jettison.json.JSONObject getDefaultBreadcrumbList(BreadcrumbService breadcrumbService, String url) throws org.codehaus.jettison.json.JSONException
url - The full URL of the requested pageorg.codehaus.jettison.json.JSONExceptionprotected static org.codehaus.jettison.json.JSONObject getLogoObject(org.springframework.core.env.Environment environment)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected static org.codehaus.jettison.json.JSONArray getSocialMediaList()
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionCopyright © 2017. All rights reserved.