@Provider @ConstrainedTo(value=SERVER) public class XhtmlFragmentMessageBodyWriter extends Object implements MessageBodyWriter<XhtmlFragment>
Constructor and Description |
---|
XhtmlFragmentMessageBodyWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(XhtmlFragment fragment,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
writeTo(XhtmlFragment fragment,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public static final String copyright
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable
in interface MessageBodyWriter<XhtmlFragment>
public long getSize(XhtmlFragment fragment, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize
in interface MessageBodyWriter<XhtmlFragment>
public void writeTo(XhtmlFragment fragment, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
writeTo
in interface MessageBodyWriter<XhtmlFragment>
IOException
WebApplicationException