Class OslcCompactJsonProvider
java.lang.Object
org.eclipse.lyo.oslc4j.provider.json4j.AbstractOslcRdfJsonProvider
org.eclipse.lyo.oslc4j.provider.json4j.OslcCompactJsonProvider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Compact>
,jakarta.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 jakarta.ws.rs.ext.MessageBodyReader<Compact>, jakarta.ws.rs.ext.MessageBodyWriter<Compact>
Deprecated.
Use JSON-LD support in Jena provider.
-
Field Summary
Fields inherited from class org.eclipse.lyo.oslc4j.provider.json4j.AbstractOslcRdfJsonProvider
httpServletRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Compact compact, Class<?> type, Type genericType, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) Deprecated.boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Deprecated.boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Deprecated.readFrom
(Class<Compact> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> map, InputStream inputStream) Deprecated.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) Deprecated.Methods inherited from class org.eclipse.lyo.oslc4j.provider.json4j.AbstractOslcRdfJsonProvider
buildBadRequestResponse, isOslcQuery, isReadable, isWriteable, readFrom, writeTo, writeTo
-
Constructor Details
-
OslcCompactJsonProvider
public OslcCompactJsonProvider()Deprecated.
-
-
Method Details
-
getSize
public long getSize(Compact compact, Class<?> type, Type genericType, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) Deprecated.- Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Compact>
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Deprecated.- Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<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.WebApplicationExceptionDeprecated.- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Compact>
- 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 interfacejakarta.ws.rs.ext.MessageBodyReader<Compact>
-
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.WebApplicationExceptionDeprecated.- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<Compact>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-