@Provider public class ValidationErrorMessageBodyWriter extends Object implements MessageBodyWriter<Object>
MessageBodyWriter providing support for (collections of) ValidationError
that is able to output instances to text/plain/text/html.| Constructor and Description |
|---|
ValidationErrorMessageBodyWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Object validationErrors,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
writeTo(Object entity,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable in interface MessageBodyWriter<Object>public long getSize(Object validationErrors, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize in interface MessageBodyWriter<Object>public void writeTo(Object entity, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
writeTo in interface MessageBodyWriter<Object>IOExceptionWebApplicationExceptionCopyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.