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