@Provider public class DatasetRdfWriter extends RdfWriter implements javax.ws.rs.ext.MessageBodyWriter<DatasetResource>
Provider
that writes dataset resources
to
output streams for HTTP responses with "application/rdf+xml" content-type.CAS_NAMESPACE_NAME, CAS_NAMESPACE_PREFIX, CAS_NAMESPACE_VALUE, RDF_NAMESPACE_NAME, RDF_NAMESPACE_VALUE
Constructor and Description |
---|
DatasetRdfWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(DatasetResource resource,
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 |
writeTo(DatasetResource resource,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
getBaseUri, getConfiguration
public long getSize(DatasetResource resource, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<DatasetResource>
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<DatasetResource>
public void writeTo(DatasetResource resource, 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<DatasetResource>
IOException
javax.ws.rs.WebApplicationException
Copyright © 1999–2017 Apache OODT. All rights reserved.