Class OslcCompactRdfProvider
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
-
- org.eclipse.lyo.oslc4j.provider.jena.OslcCompactRdfProvider
-
- All Implemented Interfaces:
MessageBodyReader<Compact>
,MessageBodyWriter<Compact>
@Provider @Produces("application/x-oslc-compact+xml") @Consumes("application/x-oslc-compact+xml") public class OslcCompactRdfProvider extends AbstractOslcRdfXmlProvider implements MessageBodyReader<Compact>, MessageBodyWriter<Compact>
- Author:
- Russell Boykin, Alberto Giammaria, Chris Peters, Gianluca Bernardini
-
-
Field Summary
-
Fields inherited from class org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
httpServletRequest, OSLC4J_ALWAYS_XML_ABBREV, OSLC4J_STRICT_DATATYPES
-
-
Constructor Summary
Constructors Constructor Description OslcCompactRdfProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(Compact compact, Class<?> type, Type genericType, Annotation[] annotation, MediaType mediaType)
boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
boolean
isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
Compact
readFrom(Class<Compact> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> map, InputStream inputStream)
void
writeTo(Compact compact, 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
-
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isWriteable
in interfaceMessageBodyWriter<Compact>
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isReadable
in interfaceMessageBodyReader<Compact>
-
writeTo
public void writeTo(Compact compact, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> map, OutputStream outputStream) throws IOException, WebApplicationException
- Specified by:
writeTo
in interfaceMessageBodyWriter<Compact>
- Throws:
IOException
WebApplicationException
-
readFrom
public Compact readFrom(Class<Compact> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> map, InputStream inputStream) throws IOException, WebApplicationException
- Specified by:
readFrom
in interfaceMessageBodyReader<Compact>
- Throws:
IOException
WebApplicationException
-
getSize
public long getSize(Compact compact, Class<?> type, Type genericType, Annotation[] annotation, MediaType mediaType)
- Specified by:
getSize
in interfaceMessageBodyWriter<Compact>
-
-