Class HtmlRenderableWriter

java.lang.Object
org.jboss.resteasy.plugins.providers.html.HtmlRenderableWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Renderable>

@Provider @Produces("text/html") public class HtmlRenderableWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<Renderable>
Author:
Jeff Schnitzer, Thomas Broyer
  • Constructor Details

    • HtmlRenderableWriter

      public HtmlRenderableWriter()
  • Method Details

    • getSize

      public long getSize(Renderable obj, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<Renderable>
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<Renderable>
    • writeTo

      public void writeTo(Renderable viewingPleasure, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Renderable>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException