Class ListResponseProvider

java.lang.Object
gluu.scim2.client.rest.provider.ListResponseProvider
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<ListResponse>

@Provider @Consumes({"application/scim+json","application/json"}) public class ListResponseProvider extends Object implements jakarta.ws.rs.ext.MessageBodyReader<ListResponse>
A custom provider for deserialization of org.gluu.oxtrust.model.scim2.ListResponse objects. This allows reading (deserializing) subclasses of org.gluu.oxtrust.model.scim2.BaseScimResource correctly.

Developers do not need to manipulate this class for their SCIM applications.

  • Constructor Details

    • ListResponseProvider

      public ListResponseProvider()
  • Method Details

    • isReadable

      public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<ListResponse>
    • readFrom

      public ListResponse readFrom(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<ListResponse>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException