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