Class OslcCompactJsonProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<Compact>, javax.ws.rs.ext.MessageBodyWriter<Compact>

    @Deprecated
    @Provider
    @Produces("application/x-oslc-compact+json")
    @Consumes("application/x-oslc-compact+json")
    public final class OslcCompactJsonProvider
    extends AbstractOslcRdfJsonProvider
    implements javax.ws.rs.ext.MessageBodyReader<Compact>, javax.ws.rs.ext.MessageBodyWriter<Compact>
    Deprecated.
    Use JSON-LD support in Jena provider.
    • Constructor Detail

      • OslcCompactJsonProvider

        public OslcCompactJsonProvider()
        Deprecated.
    • Method Detail

      • getSize

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

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

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

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

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