Class OslcCompactRdfProvider

java.lang.Object
org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
org.eclipse.lyo.oslc4j.provider.jena.OslcCompactRdfProvider
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Compact>, jakarta.ws.rs.ext.MessageBodyWriter<Compact>

@Provider @Produces("application/x-oslc-compact+xml") @Consumes("application/x-oslc-compact+xml") public class OslcCompactRdfProvider extends AbstractOslcRdfXmlProvider implements jakarta.ws.rs.ext.MessageBodyReader<Compact>, jakarta.ws.rs.ext.MessageBodyWriter<Compact>
Author:
Russell Boykin, Alberto Giammaria, Chris Peters, Gianluca Bernardini
  • Constructor Details

    • OslcCompactRdfProvider

      public OslcCompactRdfProvider()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<Compact>
    • 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<Compact>
    • writeTo

      public void writeTo(Compact compact, 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
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Compact>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • readFrom

      public Compact readFrom(Class<Compact> 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
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<Compact>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • getSize

      public long getSize(Compact compact, Class<?> type, Type genericType, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<Compact>