@Provider @Produces(value={"text/rdf+n3","application/n-triples","application/rdf+xml","text/turtle","application/x-turtle","application/rdf+json"}) public class GraphWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<Graph>
Constructor and Description |
---|
GraphWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(Graph t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
setSerializer(Serializer serializer) |
void |
unsetSerializer(Serializer serializer) |
void |
writeTo(Graph t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public void setSerializer(Serializer serializer)
public void unsetSerializer(Serializer serializer)
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Graph>
public long getSize(Graph t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<Graph>
public void writeTo(Graph 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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Graph>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.