Class StreamingBaseHtmlProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<org.fcrepo.http.commons.responses.RdfNamespacedStream>

    @Provider
    @Produces("text/html;charset=utf-8")
    public class StreamingBaseHtmlProvider
    extends Object
    implements javax.ws.rs.ext.MessageBodyWriter<org.fcrepo.http.commons.responses.RdfNamespacedStream>
    Simple HTML provider for RdfNamespacedStreams
    Since:
    Nov 19, 2013
    Author:
    ajs6f, whikloj
    • Method Detail

      • writeTo

        public void writeTo​(org.fcrepo.http.commons.responses.RdfNamespacedStream nsStream,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType,
                            javax.ws.rs.core.MultivaluedMap<String,​Object> httpHeaders,
                            OutputStream entityStream)
                     throws IOException
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.fcrepo.http.commons.responses.RdfNamespacedStream>
        Throws:
        IOException
      • 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.fcrepo.http.commons.responses.RdfNamespacedStream>
      • getSize

        public long getSize​(org.fcrepo.http.commons.responses.RdfNamespacedStream t,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.fcrepo.http.commons.responses.RdfNamespacedStream>