@Provider public class MessageWriter extends Object implements MessageBodyWriter<Message>
| Constructor and Description |
|---|
MessageWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Message message,
Class<?> clazz,
Type type,
Annotation[] annotation,
MediaType mediaType) |
boolean |
isWriteable(Class<?> clazz,
Type type,
Annotation[] annotation,
MediaType mediaType) |
void |
writeTo(Message message,
Class<?> clazz,
Type type,
Annotation[] annotation,
MediaType mediaType,
MultivaluedMap<String,Object> arg5,
OutputStream ostream) |
public boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotation, MediaType mediaType)
isWriteable in interface MessageBodyWriter<Message>public long getSize(Message message, Class<?> clazz, Type type, Annotation[] annotation, MediaType mediaType)
getSize in interface MessageBodyWriter<Message>public void writeTo(Message message, Class<?> clazz, Type type, Annotation[] annotation, MediaType mediaType, MultivaluedMap<String,Object> arg5, OutputStream ostream) throws IOException, WebApplicationException
writeTo in interface MessageBodyWriter<Message>IOExceptionWebApplicationExceptionCopyright © 2007-2019, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.