public class StructrJsonWriter extends Object implements RestWriter
| Constructor and Description |
|---|
StructrJsonWriter(SecurityContext securityContext,
Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
RestWriter |
beginArray() |
RestWriter |
beginDocument(String baseUrl,
String propertyView) |
RestWriter |
beginObject() |
RestWriter |
beginObject(GraphObject graphObject) |
RestWriter |
endArray() |
RestWriter |
endDocument() |
RestWriter |
endObject() |
RestWriter |
endObject(GraphObject graphObject) |
SecurityContext |
getSecurityContext() |
RestWriter |
name(String name) |
RestWriter |
nullValue() |
void |
setIndent(String indent) |
RestWriter |
value(boolean value) |
RestWriter |
value(double value) |
RestWriter |
value(long value) |
RestWriter |
value(Number value) |
RestWriter |
value(String value) |
public StructrJsonWriter(SecurityContext securityContext, Writer writer)
public void setIndent(String indent)
setIndent in interface RestWriterpublic SecurityContext getSecurityContext()
getSecurityContext in interface RestWriterpublic RestWriter beginDocument(String baseUrl, String propertyView) throws IOException
beginDocument in interface RestWriterIOExceptionpublic RestWriter endDocument() throws IOException
endDocument in interface RestWriterIOExceptionpublic RestWriter beginArray() throws IOException
beginArray in interface RestWriterIOExceptionpublic RestWriter endArray() throws IOException
endArray in interface RestWriterIOExceptionpublic RestWriter beginObject() throws IOException
beginObject in interface RestWriterIOExceptionpublic RestWriter beginObject(GraphObject graphObject) throws IOException
beginObject in interface RestWriterIOExceptionpublic RestWriter endObject() throws IOException
endObject in interface RestWriterIOExceptionpublic RestWriter endObject(GraphObject graphObject) throws IOException
endObject in interface RestWriterIOExceptionpublic RestWriter name(String name) throws IOException
name in interface RestWriterIOExceptionpublic RestWriter value(String value) throws IOException
value in interface RestWriterIOExceptionpublic RestWriter nullValue() throws IOException
nullValue in interface RestWriterIOExceptionpublic RestWriter value(boolean value) throws IOException
value in interface RestWriterIOExceptionpublic RestWriter value(double value) throws IOException
value in interface RestWriterIOExceptionpublic RestWriter value(long value) throws IOException
value in interface RestWriterIOExceptionpublic RestWriter value(Number value) throws IOException
value in interface RestWriterIOExceptionCopyright © 2014. All rights reserved.