Class ConversionStatusWithResultWriter
java.lang.Object
org.nuxeo.ecm.automation.io.rest.EntityWriter<ConversionStatusWithResult>
org.nuxeo.ecm.restapi.io.conversion.ConversionStatusWithResultWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<ConversionStatusWithResult>
@Singleton
@Provider
@Produces("application/json")
public class ConversionStatusWithResultWriter
extends EntityWriter<ConversionStatusWithResult>
- Since:
- 7.4
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.automation.io.rest.EntityWriter
factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringget the Entity type of the current entity type.protected voidwriteEntityBody(com.fasterxml.jackson.core.JsonGenerator jg, ConversionStatusWithResult conversionStatusWithResult) Write the body of the entity.Methods inherited from class org.nuxeo.ecm.automation.io.rest.EntityWriter
getSize, isWriteable, writeEntity, writeTo
-
Field Details
-
ENTITY_TYPE
- See Also:
-
-
Constructor Details
-
ConversionStatusWithResultWriter
public ConversionStatusWithResultWriter()
-
-
Method Details
-
writeEntityBody
protected void writeEntityBody(com.fasterxml.jackson.core.JsonGenerator jg, ConversionStatusWithResult conversionStatusWithResult) throws IOException Description copied from class:EntityWriterWrite the body of the entity. The object has already been opened and it entity-type rendered.- Specified by:
writeEntityBodyin classEntityWriter<ConversionStatusWithResult>- Throws:
IOException
-
getEntityType
Description copied from class:EntityWriterget the Entity type of the current entity type. It MUST follow camelCase notation- Specified by:
getEntityTypein classEntityWriter<ConversionStatusWithResult>- Returns:
- the string representing the entity-type.
-