Class DummyWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.commons.rdf.Graph>

    @Provider
    @Produces("*/*; qs=0.01")
    @Priority(2147483647)
    public class DummyWriter
    extends Object
    implements javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.commons.rdf.Graph>
    This writer is to prevent the default rendering. It just returns an HTTP 406 response
    • Constructor Detail

      • DummyWriter

        public DummyWriter()
    • Method Detail

      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.commons.rdf.Graph>
      • writeTo

        public void writeTo​(org.apache.clerezza.commons.rdf.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
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.clerezza.commons.rdf.Graph>
        Throws:
        IOException
        javax.ws.rs.WebApplicationException