public static class JsonpEncoder.JsonpRepresentation
extends StreamRepresentation
The JSONP format representation.
Constructor and Description |
---|
JsonpEncoder.JsonpRepresentation(java.lang.Object innerValue, java.lang.String callBack, int statusCode, MediaType mediaType)
The constructor that construct a WrapperRepresentation object according to JSON array and the name of the callback function.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getStream() |
void |
setStatusCode(int code) |
void |
write(java.io.OutputStream paramOutputStream) |
public JsonpEncoder.JsonpRepresentation(java.lang.Object innerValue, java.lang.String callBack, int statusCode, MediaType mediaType)
The constructor that construct a WrapperRepresentation object according to JSON array and the name of the callback function.
jsonArray
- The JSON array.callBack
- The name of the callback function