public class JsonResponseWriter extends JsonAndJsonApiResponseWriter
{
"metricColumn1Name" : metricValue1,
"metricColumn2Name" : metricValue2,
.
.
.
"dimensionColumnName" : "dimensionRowDesc",
"dateTime" : "formattedDateTimeString"
},
"linkName1" : "http://uri1",
"linkName2": "http://uri2",
...
"linkNameN": "http://uriN"
Where "linkName1" ... "linkNameN" are the N keys in paginationLinks, and "http://uri1" ... "http://uriN" are the
associated URI's.Constructor and Description |
---|
JsonResponseWriter(ObjectMappersSuite objectMappers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
write(ApiRequest request,
ResponseData responseData,
OutputStream os)
Writes JSON response.
|
getObjectMappers, writeMetaObject
public JsonResponseWriter(ObjectMappersSuite objectMappers)
objectMappers
- ObjectMappersSuite object needed for JsonFactorypublic void write(ApiRequest request, ResponseData responseData, OutputStream os) throws IOException
request
- ApiRequest object with all the associated info in itresponseData
- Data object containing all the result informationos
- OutputStreamIOException
- if a problem is encountered writing to the OutputStreamCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.