public class JsonApiResponseWriter extends JsonAndJsonApiResponseWriter
}Where "linkName1" ... "linkNameN" are the N keys in paginationLinks, and "http://uri1" ... "http://uriN" are the associated URI's.
Constructor and Description |
---|
JsonApiResponseWriter(ObjectMappersSuite objectMappers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
write(ApiRequest request,
ResponseData responseData,
OutputStream os)
Writes JSON-API response.
|
getObjectMappers, writeMetaObject
public JsonApiResponseWriter(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.