@Provider public class JsonAdapterWriter extends Object implements MessageBodyWriter<JsonAdapter>
Constructor and Description |
---|
JsonAdapterWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(JsonAdapter t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
writeTo(JsonAdapter arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream arg6) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable
in interface MessageBodyWriter<JsonAdapter>
public long getSize(JsonAdapter t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize
in interface MessageBodyWriter<JsonAdapter>
public void writeTo(JsonAdapter arg0, Class<?> arg1, Type arg2, Annotation[] arg3, MediaType arg4, MultivaluedMap<String,Object> arg5, OutputStream arg6) throws IOException, WebApplicationException
writeTo
in interface MessageBodyWriter<JsonAdapter>
IOException
WebApplicationException
Copyright © 2013 Nuxeo SA. All Rights Reserved.