@Provider public class TaskWriter extends EntityWriter<Task>
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_TYPE |
factory
Constructor and Description |
---|
TaskWriter() |
Modifier and Type | Method and Description |
---|---|
protected static ActionContext |
createActionContext(CoreSession session) |
protected String |
getEntityType()
get the Entity type of the current entity type.
|
protected void |
writeEntityBody(org.codehaus.jackson.JsonGenerator jg,
Task item)
Write the body of the entity.
|
static void |
writeTask(org.codehaus.jackson.JsonGenerator jg,
Task item,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
getSize, isWriteable, writeEntity, writeTo
public static final String ENTITY_TYPE
public TaskWriter()
protected void writeEntityBody(org.codehaus.jackson.JsonGenerator jg, Task item) throws IOException
EntityWriter
writeEntityBody
in class EntityWriter<Task>
IOException
public static void writeTask(org.codehaus.jackson.JsonGenerator jg, Task item, javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.UriInfo uriInfo) throws org.codehaus.jackson.JsonGenerationException, IOException
org.codehaus.jackson.JsonGenerationException
IOException
protected static ActionContext createActionContext(CoreSession session)
protected String getEntityType()
EntityWriter
getEntityType
in class EntityWriter<Task>
Copyright © 2015 Nuxeo SA. All rights reserved.