public class ERXJSONRestWriter extends java.lang.Object implements IERXRestWriter
| Properties | |
| Boolean property to enable pretty-printing of JSON response. Defaults to false. |
| Integer property to set the pretty print indentation space count. Defaults to 2. |
| Constructor and Description |
|---|
ERXJSONRestWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendHeadersToResponse(ERXRestRequestNode node,
IERXRestResponse response,
ERXRestContext context)
Called at the end of a request to produce the output to the user.
|
void |
appendToResponse(ERXRestRequestNode node,
IERXRestResponse response,
ERXRestFormat.Delegate delegate,
ERXRestContext context)
Called at the end of a request to produce the output to the user.
|
protected net.sf.json.JsonConfig |
configWithContext(ERXRestContext context) |
protected ERXRestRequestNode |
processNode(ERXRestRequestNode node) |
protected net.sf.json.JsonConfig configWithContext(ERXRestContext context)
protected ERXRestRequestNode processNode(ERXRestRequestNode node)
public void appendHeadersToResponse(ERXRestRequestNode node, IERXRestResponse response, ERXRestContext context)
IERXRestWriterappendHeadersToResponse in interface IERXRestWriternode - the node to renderresponse - the response to write intopublic void appendToResponse(ERXRestRequestNode node, IERXRestResponse response, ERXRestFormat.Delegate delegate, ERXRestContext context)
IERXRestWriterappendToResponse in interface IERXRestWriternode - the node to renderresponse - the response to write intoCopyright © 2002 – 2022 Project Wonder.