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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Renderable obj, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) 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)
-
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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.ws.rs.ext.MessageBodyWriter<Renderable>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-