Class OslcRdfXmlProvider
java.lang.Object
org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
org.eclipse.lyo.oslc4j.provider.jena.OslcRdfXmlProvider
- All Implemented Interfaces:
MessageBodyReader<Object>,MessageBodyWriter<Object>
- Direct Known Subclasses:
OslcJsonLdProvider,OslcTurtleProvider,OslcXmlProvider
@Provider
@Produces("application/rdf+xml")
@Consumes("application/rdf+xml")
public class OslcRdfXmlProvider
extends AbstractOslcRdfXmlProvider
implements MessageBodyReader<Object>, MessageBodyWriter<Object>
- Author:
- Russell Boykin, Alberto Giammaria, Chris Peters, Gianluca Bernardini, Steve Pitschke
-
Field Summary
Fields inherited from class org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
httpServletRequest, OSLC4J_ALWAYS_XML_ABBREV, OSLC4J_STRICT_DATATYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(Object object, Class<?> type, Type genericType, Annotation[] annotation, MediaType mediaType) booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> map, InputStream inputStream) voidwriteTo(Object object, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> map, OutputStream outputStream) Methods inherited from class org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
buildBadRequestResponse, readFrom, writeTo, writeTo
-
Constructor Details
-
OslcRdfXmlProvider
public OslcRdfXmlProvider()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isWriteablein interfaceMessageBodyWriter<Object>
-
writeTo
public void writeTo(Object object, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> map, OutputStream outputStream) throws IOException, WebApplicationException- Specified by:
writeToin interfaceMessageBodyWriter<Object>- Throws:
IOExceptionWebApplicationException
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isReadablein interfaceMessageBodyReader<Object>
-
readFrom
public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> map, InputStream inputStream) throws IOException, WebApplicationException- Specified by:
readFromin interfaceMessageBodyReader<Object>- Throws:
IOExceptionWebApplicationException
-
getSize
public long getSize(Object object, Class<?> type, Type genericType, Annotation[] annotation, MediaType mediaType) - Specified by:
getSizein interfaceMessageBodyWriter<Object>
-