@Provider public class JsonTreeWriter extends Object implements MessageBodyWriter<org.codehaus.jackson.JsonNode>
Constructor and Description |
---|
JsonTreeWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(org.codehaus.jackson.JsonNode t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
writeTo(org.codehaus.jackson.JsonNode t,
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<org.codehaus.jackson.JsonNode>
public long getSize(org.codehaus.jackson.JsonNode t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize
in interface MessageBodyWriter<org.codehaus.jackson.JsonNode>
public void writeTo(org.codehaus.jackson.JsonNode t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
writeTo
in interface MessageBodyWriter<org.codehaus.jackson.JsonNode>
IOException
WebApplicationException
Copyright © 2011 Nuxeo SA. All Rights Reserved.