@Provider public class LogEntryListWriter extends EntityListWriter<LogEntry>
factory| Constructor and Description |
|---|
LogEntryListWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getEntityType()
Returns the entity-type value of the list (ie: users, groups....)
|
boolean |
isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
javax.ws.rs.core.MediaType arg3) |
protected void |
writeItem(org.codehaus.jackson.JsonGenerator jg,
LogEntry item)
Writes the item in a JsonGenerator.
|
writeEntityBody, writeHeader, writePaginableHeadergetSize, writeEntity, writeToprotected String getEntityType()
EntityListWritergetEntityType in class EntityListWriter<LogEntry>public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<List<LogEntry>>isWriteable in class EntityListWriter<LogEntry>protected void writeItem(org.codehaus.jackson.JsonGenerator jg,
LogEntry item)
throws ClientException,
IOException
EntityListWriterwriteItem in class EntityListWriter<LogEntry>ClientExceptionIOExceptionCopyright © 2019 Nuxeo SA. All rights reserved.