Class OslcRdfJsonCollectionProvider

java.lang.Object
org.eclipse.lyo.oslc4j.provider.json4j.AbstractOslcRdfJsonProvider
org.eclipse.lyo.oslc4j.provider.json4j.OslcRdfJsonCollectionProvider
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Collection<Object>>, jakarta.ws.rs.ext.MessageBodyWriter<Collection<Object>>
Direct Known Subclasses:
OslcSimpleRdfJsonCollectionProvider

@Deprecated @Provider @Produces("application/json") @Consumes("application/json") public class OslcRdfJsonCollectionProvider extends AbstractOslcRdfJsonProvider implements jakarta.ws.rs.ext.MessageBodyReader<Collection<Object>>, jakarta.ws.rs.ext.MessageBodyWriter<Collection<Object>>
Deprecated.
Use JSON-LD support in Jena provider.
  • Constructor Details

    • OslcRdfJsonCollectionProvider

      public OslcRdfJsonCollectionProvider()
      Deprecated.
  • Method Details

    • getSize

      public long getSize(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType)
      Deprecated.
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<Collection<Object>>
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Deprecated.
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<Collection<Object>>
    • writeTo

      public void writeTo(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> map, OutputStream outputStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Deprecated.
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Collection<Object>>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • isReadable

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

      public Collection<Object> readFrom(Class<Collection<Object>> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> map, InputStream inputStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Deprecated.
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<Collection<Object>>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException