Class TaskCompletionRequestJsonReader
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader<EntityType>
-
- org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader<TaskCompletionRequest>
-
- org.nuxeo.ecm.platform.routing.core.io.TaskCompletionRequestJsonReader
-
- All Implemented Interfaces:
Marshaller<TaskCompletionRequest>,Reader<TaskCompletionRequest>
@Setup(mode=SINGLETON, priority=2000) public class TaskCompletionRequestJsonReader extends EntityJsonReader<TaskCompletionRequest>
- Since:
- 8.2
-
-
Field Summary
Fields Modifier and Type Field Description static StringENTITY_TYPE-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description TaskCompletionRequestJsonReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediatype)Checks if this marshaller can handle the marshalling request.TaskCompletionRequestreadEntity(com.fasterxml.jackson.databind.JsonNode jn)Implement this method to read the entity.-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader
read
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntity
-
-
-
-
Field Detail
-
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TaskCompletionRequestJsonReader
public TaskCompletionRequestJsonReader()
-
-
Method Detail
-
accept
public boolean accept(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediatype)
Description copied from interface:MarshallerChecks if this marshaller can handle the marshalling request.Please note it's useless to check that clazz is an instance of EntityType or if generic type and entity type are compatible (unlike JAX-RS which just checks the clazz, not the generic type). It's also useless to check
Supportsis compatible with mediatype. This is already done by theMarshallerRegistryThis method implementation can use injected properties. So you can check the current
RenderingContextto accept or reject a marshalling request.- Specified by:
acceptin interfaceMarshaller<TaskCompletionRequest>- Overrides:
acceptin classAbstractJsonReader<TaskCompletionRequest>- Parameters:
clazz- The type to marshall.genericType- The generic type to marshall.mediatype- The managed mimetype.- Returns:
- true if this converter handle the request, false otherwise.
-
readEntity
public TaskCompletionRequest readEntity(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
Description copied from class:EntityJsonReaderImplement this method to read the entity.- Specified by:
readEntityin classEntityJsonReader<TaskCompletionRequest>- Parameters:
jn- AJsonNodepointing at the root of the json input.- Returns:
- The parsed entity.
- Throws:
IOException
-
-