Package org.primefaces.seo
Class JsonLD
- java.lang.Object
-
- org.primefaces.seo.JsonLD
-
public class JsonLD extends Object
Create a script of type `ld+json` for Advanced SEO using JSON for Linking Data. Data is messy and disconnected. JSON-LD organizes and connects it, creating a better Web.- Since:
- 12.0.0
- See Also:
- JSON for Linking Data
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
encode(javax.faces.context.FacesContext context, JsonLDModel model, String id)
static void
encodeItem(FastStringWriter writer, JsonLDItem item)
static void
encodeItems(FastStringWriter writer, String optionName, List<JsonLDItem> items, boolean hasComma)
static void
encodeModel(javax.faces.context.FacesContext context, JsonLDModel model)
static void
writeOption(FastStringWriter writer, String name, Object value, boolean hasComma)
-
-
-
Method Detail
-
encode
public static void encode(javax.faces.context.FacesContext context, JsonLDModel model, String id) throws IOException
- Throws:
IOException
-
encodeModel
public static void encodeModel(javax.faces.context.FacesContext context, JsonLDModel model) throws IOException
- Throws:
IOException
-
encodeItems
public static void encodeItems(FastStringWriter writer, String optionName, List<JsonLDItem> items, boolean hasComma) throws IOException
- Throws:
IOException
-
encodeItem
public static void encodeItem(FastStringWriter writer, JsonLDItem item) throws IOException
- Throws:
IOException
-
writeOption
public static void writeOption(FastStringWriter writer, String name, Object value, boolean hasComma) throws IOException
- Throws:
IOException
-
-