@Provider public class JsonESDocumentWriter extends JsonDocumentWriter
Modifier and Type | Field and Description |
---|---|
static String |
MIME_TYPE |
DOCUMENT_PROPERTIES_HEADER, headers
Constructor and Description |
---|
JsonESDocumentWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
protected void |
writeContextParameters(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc,
Map<String,String> contextParameters) |
void |
writeDoc(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc,
String[] schemas,
Map<String,String> contextParameters,
javax.ws.rs.core.HttpHeaders headers) |
void |
writeDocument(OutputStream out,
DocumentModel doc,
String[] schemas,
Map<String,String> contextParameters) |
void |
writeESDocument(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc,
String[] schemas,
Map<String,String> contextParameters) |
protected void |
writeSchemas(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc,
String[] schemas) |
protected void |
writeSystemProperties(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc) |
getSize, writeDocument, writeDocument, writeDocument, writeDocument, writeProperties, writePropertyValue, writeRestContributions, writeTo
public static final String MIME_TYPE
public JsonESDocumentWriter()
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<DocumentModel>
isWriteable
in class JsonDocumentWriter
public void writeDoc(org.codehaus.jackson.JsonGenerator jg, DocumentModel doc, String[] schemas, Map<String,String> contextParameters, javax.ws.rs.core.HttpHeaders headers) throws IOException
IOException
protected void writeSystemProperties(org.codehaus.jackson.JsonGenerator jg, DocumentModel doc) throws IOException
IOException
protected void writeSchemas(org.codehaus.jackson.JsonGenerator jg, DocumentModel doc, String[] schemas) throws IOException
IOException
protected void writeContextParameters(org.codehaus.jackson.JsonGenerator jg, DocumentModel doc, Map<String,String> contextParameters) throws IOException
IOException
public void writeDocument(OutputStream out, DocumentModel doc, String[] schemas, Map<String,String> contextParameters) throws IOException
writeDocument
in class JsonDocumentWriter
IOException
public void writeESDocument(org.codehaus.jackson.JsonGenerator jg, DocumentModel doc, String[] schemas, Map<String,String> contextParameters) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.