Class ScimResourceReader
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader<com.unboundid.scim2.common.ScimResource>
org.nuxeo.scim.v2.rest.marshalling.ScimResourceReader
- All Implemented Interfaces:
Marshaller<com.unboundid.scim2.common.ScimResource>
,Reader<com.unboundid.scim2.common.ScimResource>
@Setup(mode=SINGLETON,
priority=2000)
public class ScimResourceReader
extends AbstractJsonReader<com.unboundid.scim2.common.ScimResource>
SCIM 2.0
ScimResource
JSON reader.- Since:
- 2023.15
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
ctx, registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.unboundid.scim2.common.ScimResource
read
(com.fasterxml.jackson.databind.JsonNode jn) Implement this method, read the entity data in the providedJsonNode
and return corresponding java object.com.unboundid.scim2.common.ScimResource
read
(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediaType, InputStream in) Read the entity from inInputStream
using mediatype format.Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
accept, getBooleanField, getLongField, getNode, getStringField, getStringListField, readEntity
-
Constructor Details
-
ScimResourceReader
public ScimResourceReader()
-
-
Method Details
-
read
public com.unboundid.scim2.common.ScimResource read(Class<?> clazz, Type genericType, javax.ws.rs.core.MediaType mediaType, InputStream in) throws IOException Description copied from interface:Reader
Read the entity from inInputStream
using mediatype format.This method implementation can use injected properties.
- Specified by:
read
in interfaceReader<com.unboundid.scim2.common.ScimResource>
- Overrides:
read
in classAbstractJsonReader<com.unboundid.scim2.common.ScimResource>
- Parameters:
clazz
- The requested marshalled class.genericType
- The requested marshalled generic type.mediaType
- The input media type.in
- The input of this marshaller.- Throws:
IOException
- If some error append while reading entity from in.
-
read
public com.unboundid.scim2.common.ScimResource read(com.fasterxml.jackson.databind.JsonNode jn) Description copied from class:AbstractJsonReader
Implement this method, read the entity data in the providedJsonNode
and return corresponding java object.- Specified by:
read
in classAbstractJsonReader<com.unboundid.scim2.common.ScimResource>
- Parameters:
jn
- A ready to useJsonNode
.- Returns:
- The unmarshalled entity.
-