com.supermap.services.rest.encoders
Class JsonpEncoder.JsonpRepresentation
- java.lang.Object
-
- StreamRepresentation
-
- com.supermap.services.rest.encoders.JsonpEncoder.JsonpRepresentation
-
- Enclosing class:
- JsonpEncoder
public static class JsonpEncoder.JsonpRepresentation extends StreamRepresentationThe JSONP format representation.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
Methods Modifier and Type Method and Description java.io.InputStreamgetStream()voidsetStatusCode(int code)voidwrite(java.io.OutputStream paramOutputStream)
-
-
-
Constructor Detail
-
JsonpEncoder.JsonpRepresentation
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.
- Parameters:
jsonArray- The JSON array.callBack- The name of the callback function
-
-