Class TurtleMarshaller
- java.lang.Object
-
- com.epimorphics.webapi.marshalling.TurtleMarshaller
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<org.apache.jena.rdf.model.Model>
@Provider @Produces("text/turtle; charset=UTF-8") public class TurtleMarshaller extends Object implements javax.ws.rs.ext.MessageBodyWriter<org.apache.jena.rdf.model.Model>
-
-
Field Summary
Fields Modifier and Type Field Description static StringMIME_TURTLEstatic StringMIME_TURTLE_CS
-
Constructor Summary
Constructors Constructor Description TurtleMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(org.apache.jena.rdf.model.Model t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)voidwriteTo(org.apache.jena.rdf.model.Model t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Field Detail
-
MIME_TURTLE_CS
public static final String MIME_TURTLE_CS
- See Also:
- Constant Field Values
-
MIME_TURTLE
public static final String MIME_TURTLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<org.apache.jena.rdf.model.Model>
-
getSize
public long getSize(org.apache.jena.rdf.model.Model t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<org.apache.jena.rdf.model.Model>
-
writeTo
public void writeTo(org.apache.jena.rdf.model.Model t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<org.apache.jena.rdf.model.Model>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-