public class JsonWriter extends CustomOutputWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_EXTENSION |
protected javax.json.stream.JsonGenerator |
jsonWriter |
customOutputs, KEY_ITEMS, KEY_SIZE, max, NB_MAX, PARAM_SIZE, PARAM_WRITER, PATH_KEY, pipe, size, writer| Modifier and Type | Method and Description |
|---|---|
void |
ends()
writes the end of the output
|
boolean |
handleRequest(org.apache.sling.api.SlingHttpServletRequest request) |
protected void |
initResponse(org.apache.sling.api.SlingHttpServletResponse response)
Specifically init the response
|
void |
starts()
Init the writer, writes beginning of the output
|
void |
writeItem(org.apache.sling.api.resource.Resource resource)
Write a given resource
|
init, setPipesetMax, setWriter, toString, writeprotected javax.json.stream.JsonGenerator jsonWriter
public static final String JSON_EXTENSION
public boolean handleRequest(org.apache.sling.api.SlingHttpServletRequest request)
handleRequest in class OutputWriterrequest - current requestprotected void initResponse(org.apache.sling.api.SlingHttpServletResponse response)
OutputWriterinitResponse in class OutputWriterresponse - response on which to writepublic void starts()
OutputWriterstarts in class OutputWriterpublic void writeItem(org.apache.sling.api.resource.Resource resource)
OutputWriterwriteItem in class OutputWriterresource - resource that will be writtenpublic void ends()
OutputWriterends in class OutputWriterCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.