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
  • 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 in InputStream using mediatype format.

      This method implementation can use injected properties.

      Specified by:
      read in interface Reader<com.unboundid.scim2.common.ScimResource>
      Overrides:
      read in class AbstractJsonReader<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 provided JsonNode and return corresponding java object.
      Specified by:
      read in class AbstractJsonReader<com.unboundid.scim2.common.ScimResource>
      Parameters:
      jn - A ready to use JsonNode.
      Returns:
      The unmarshalled entity.