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)
@Supports({"application/scim+json","application/json"})
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.unboundid.scim2.common.ScimResourceread(com.fasterxml.jackson.databind.JsonNode jn) Implement this method, read the entity data in the providedJsonNodeand return corresponding java object.com.unboundid.scim2.common.ScimResourceread(Class<?> clazz, Type genericType, jakarta.ws.rs.core.MediaType mediaType, InputStream in) Read the entity from inInputStreamusing 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, jakarta.ws.rs.core.MediaType mediaType, InputStream in) throws IOException Description copied from interface:ReaderRead the entity from inInputStreamusing mediatype format.This method implementation can use injected properties.
- Specified by:
readin interfaceReader<com.unboundid.scim2.common.ScimResource>- Overrides:
readin 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:AbstractJsonReaderImplement this method, read the entity data in the providedJsonNodeand return corresponding java object.- Specified by:
readin classAbstractJsonReader<com.unboundid.scim2.common.ScimResource>- Parameters:
jn- A ready to useJsonNode.- Returns:
- The unmarshalled entity.
-