org.nuxeo.ecm.automation.server.jaxrs.io.writers
Class JsonTreeWriter
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonTreeWriter
- All Implemented Interfaces:
- MessageBodyWriter<org.codehaus.jackson.JsonNode>
@Provider
public class JsonTreeWriter
- extends Object
- implements MessageBodyWriter<org.codehaus.jackson.JsonNode>
- Author:
- bstefanescu
Method Summary |
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)
|
JsonTreeWriter
public JsonTreeWriter()
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
- Specified by:
isWriteable
in interface MessageBodyWriter<org.codehaus.jackson.JsonNode>
getSize
public long getSize(org.codehaus.jackson.JsonNode t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
- Specified by:
getSize
in interface MessageBodyWriter<org.codehaus.jackson.JsonNode>
writeTo
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
- Specified by:
writeTo
in interface MessageBodyWriter<org.codehaus.jackson.JsonNode>
- Throws:
IOException
WebApplicationException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.