org.nuxeo.ecm.automation.server.jaxrs.io.writers
Class JsonDocumentWriter
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonDocumentWriter
- All Implemented Interfaces:
- MessageBodyWriter<DocumentModel>
@Provider
public class JsonDocumentWriter
- extends Object
- implements MessageBodyWriter<DocumentModel>
- Author:
- Bogdan Stefanescu
Method Summary |
long |
getSize(DocumentModel arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4)
|
boolean |
isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
MediaType arg3)
|
static void |
writeDocument(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc,
String[] schemas)
|
static void |
writeDocument(OutputStream out,
DocumentModel doc,
String[] schemas)
|
void |
writeTo(DocumentModel doc,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream out)
|
DOCUMENT_PROPERTIES_HEADER
public static final String DOCUMENT_PROPERTIES_HEADER
- See Also:
- Constant Field Values
JsonDocumentWriter
public JsonDocumentWriter()
getSize
public long getSize(DocumentModel arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4)
- Specified by:
getSize
in interface MessageBodyWriter<DocumentModel>
isWriteable
public boolean isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
MediaType arg3)
- Specified by:
isWriteable
in interface MessageBodyWriter<DocumentModel>
writeTo
public void writeTo(DocumentModel doc,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream out)
throws IOException,
WebApplicationException
- Specified by:
writeTo
in interface MessageBodyWriter<DocumentModel>
- Throws:
IOException
WebApplicationException
writeDocument
public static void writeDocument(OutputStream out,
DocumentModel doc,
String[] schemas)
throws Exception
- Throws:
Exception
writeDocument
public static void writeDocument(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc,
String[] schemas)
throws Exception
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.