@Consumes(value="application/json") @Provider public class PageWriter extends AbstractWriter<Page>
PageInfo
nullValueSupplier
ct, t
Constructor and Description |
---|
PageWriter() |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JsonConfig |
getJsonConfig()
Optional
JsonConfig to apply on the Page#getPage() elements |
void |
setJsonConfig(net.sf.json.JsonConfig jsonConfig)
Optional
JsonConfig to apply on the Page#getPage() elements |
void |
writeTo(Page page,
Class<?> type,
Type genericType,
Annotation[] annotation,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> map,
OutputStream entityStream) |
getConfig, getNullValueSupplier, getSize, isWriteable, setNullValueSupplier
public void writeTo(Page page, Class<?> type, Type genericType, Annotation[] annotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> map, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Page>
writeTo
in class AbstractWriter<Page>
IOException
javax.ws.rs.WebApplicationException
public net.sf.json.JsonConfig getJsonConfig()
JsonConfig
to apply on the Page#getPage()
elementspublic void setJsonConfig(net.sf.json.JsonConfig jsonConfig)
JsonConfig
to apply on the Page#getPage()
elementsCopyright © 2018. All rights reserved.