Class OslcRdfXmlCollectionProvider
java.lang.Object
org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
org.eclipse.lyo.oslc4j.provider.jena.OslcRdfXmlCollectionProvider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Collection<Object>>
,jakarta.ws.rs.ext.MessageBodyWriter<Collection<Object>>
- Direct Known Subclasses:
OslcJsonLdCollectionProvider
,OslcSimpleRdfXmlCollectionProvider
,OslcTurtleCollectionProvider
,OslcXmlCollectionProvider
@Provider
@Produces("application/rdf+xml")
@Consumes("application/rdf+xml")
public class OslcRdfXmlCollectionProvider
extends AbstractOslcRdfXmlProvider
implements jakarta.ws.rs.ext.MessageBodyReader<Collection<Object>>, jakarta.ws.rs.ext.MessageBodyWriter<Collection<Object>>
- Author:
- Russell Boykin, Alberto Giammaria, Chris Peters, Gianluca Bernardini, Andrew Berezovskyi
-
Field Summary
Fields inherited from class org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
httpServletRequest, OSLC4J_ALWAYS_XML_ABBREV, OSLC4J_STRICT_DATATYPES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) 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) 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) Methods inherited from class org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
buildBadRequestResponse, readFrom, writeTo, writeTo
-
Constructor Details
-
OslcRdfXmlCollectionProvider
public OslcRdfXmlCollectionProvider()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.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- Specified by:
writeTo
in interfacejakarta.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) - Specified by:
isReadable
in interfacejakarta.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- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<Collection<Object>>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
getSize
public long getSize(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Collection<Object>>
-