Class ConversionStatusWithResultWriter
- java.lang.Object
-
- org.nuxeo.ecm.automation.jaxrs.io.EntityWriter<ConversionStatusWithResult>
-
- org.nuxeo.ecm.restapi.jaxrs.io.conversion.ConversionStatusWithResultWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<ConversionStatusWithResult>
@Provider public class ConversionStatusWithResultWriter extends EntityWriter<ConversionStatusWithResult>
- Since:
- 7.4
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_TYPE
-
Fields inherited from class org.nuxeo.ecm.automation.jaxrs.io.EntityWriter
factory
-
-
Constructor Summary
Constructors Constructor Description ConversionStatusWithResultWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getEntityType()
get the Entity type of the current entity type.protected void
writeEntityBody(com.fasterxml.jackson.core.JsonGenerator jg, ConversionStatusWithResult conversionStatusWithResult)
Write the body of the entity.-
Methods inherited from class org.nuxeo.ecm.automation.jaxrs.io.EntityWriter
getSize, isWriteable, writeEntity, writeTo
-
-
-
-
Field Detail
-
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeEntityBody
protected void writeEntityBody(com.fasterxml.jackson.core.JsonGenerator jg, ConversionStatusWithResult conversionStatusWithResult) throws IOException
Description copied from class:EntityWriter
Write the body of the entity. The object has already been opened and it entity-type rendered.- Specified by:
writeEntityBody
in classEntityWriter<ConversionStatusWithResult>
- Throws:
IOException
-
getEntityType
protected String getEntityType()
Description copied from class:EntityWriter
get the Entity type of the current entity type. It MUST follow camelCase notation- Specified by:
getEntityType
in classEntityWriter<ConversionStatusWithResult>
- Returns:
- the string representing the entity-type.
-
-