@Provider public class DocumentRouteListWriter extends EntityListWriter<DocumentRoute>
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.core.HttpHeaders |
headers |
protected javax.servlet.http.HttpServletRequest |
request |
Constructor and Description |
---|
DocumentRouteListWriter() |
Modifier and Type | Method and Description |
---|---|
protected String |
getEntityType()
Returns the entity-type value of the list (ie: users, groups....)
|
protected void |
writeItem(org.codehaus.jackson.JsonGenerator jg,
DocumentRoute item)
Writes the item in a JsonGenerator.
|
void |
writeTo(List<DocumentRoute> docRoutes,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
isWriteable, writeEntityBody, writeHeader, writePaginableHeader
getSize, writeEntity
@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected javax.servlet.http.HttpServletRequest request
public DocumentRouteListWriter()
protected String getEntityType()
EntityListWriter
getEntityType
in class EntityListWriter<DocumentRoute>
protected void writeItem(org.codehaus.jackson.JsonGenerator jg, DocumentRoute item) throws IOException
EntityListWriter
writeItem
in class EntityListWriter<DocumentRoute>
IOException
public void writeTo(List<DocumentRoute> docRoutes, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<List<DocumentRoute>>
writeTo
in class EntityWriter<List<DocumentRoute>>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015 Nuxeo SA. All rights reserved.