Class OslcRdfJsonCollectionProvider
java.lang.Object
org.eclipse.lyo.oslc4j.provider.json4j.AbstractOslcRdfJsonProvider
org.eclipse.lyo.oslc4j.provider.json4j.OslcRdfJsonCollectionProvider
- All Implemented Interfaces:
MessageBodyReader<Collection<Object>>
,MessageBodyWriter<Collection<Object>>
- Direct Known Subclasses:
OslcSimpleRdfJsonCollectionProvider
@Deprecated
@Provider
@Produces("application/json")
@Consumes("application/json")
public class OslcRdfJsonCollectionProvider
extends AbstractOslcRdfJsonProvider
implements MessageBodyReader<Collection<Object>>, MessageBodyWriter<Collection<Object>>
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
(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotation, MediaType mediaType) Deprecated.boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) Deprecated.boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) Deprecated.readFrom
(Class<Collection<Object>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> map, InputStream inputStream) Deprecated.void
writeTo
(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, 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
-
OslcRdfJsonCollectionProvider
public OslcRdfJsonCollectionProvider()Deprecated.
-
-
Method Details
-
getSize
public long getSize(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotation, MediaType mediaType) Deprecated.- Specified by:
getSize
in interfaceMessageBodyWriter<Collection<Object>>
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) Deprecated.- Specified by:
isWriteable
in interfaceMessageBodyWriter<Collection<Object>>
-
writeTo
public void writeTo(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> map, OutputStream outputStream) throws IOException, WebApplicationExceptionDeprecated.- Specified by:
writeTo
in interfaceMessageBodyWriter<Collection<Object>>
- Throws:
IOException
WebApplicationException
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) Deprecated.- Specified by:
isReadable
in interfaceMessageBodyReader<Collection<Object>>
-
readFrom
public Collection<Object> readFrom(Class<Collection<Object>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> map, InputStream inputStream) throws IOException, WebApplicationExceptionDeprecated.- Specified by:
readFrom
in interfaceMessageBodyReader<Collection<Object>>
- Throws:
IOException
WebApplicationException
-