public class JsonRepresentation extends BaseOutputRepresentation
ObjectNode
to JSON.Constructor and Description |
---|
JsonRepresentation(Object object) |
JsonRepresentation(ObjectNode objectNode) |
JsonRepresentation(ObjectNode objectNode,
ObjectMapper mapper) |
JsonRepresentation(Object object,
ObjectMapper mapper) |
Modifier and Type | Method and Description |
---|---|
void |
write(OutputStream outputStream) |
getStream
getText, isAvailable, isTransient, setAvailable, setTransient
getCharacterSet, getEncodings, getExpirationDate, getIdentifier, getLanguages, getMediaType, getModificationDate, getSize, getTag, setCharacterSet, setExpirationDate, setIdentifier, setIdentifier, setMediaType, setModificationDate, setSize, setTag
public JsonRepresentation(ObjectNode objectNode)
public JsonRepresentation(ObjectNode objectNode, ObjectMapper mapper)
public JsonRepresentation(Object object)
public JsonRepresentation(Object object, ObjectMapper mapper)
public void write(OutputStream outputStream) throws IOException
write
in class org.restlet.resource.OutputRepresentation
IOException