@Provider public class JsonESDocumentWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<DocumentModel>
Modifier and Type | Field and Description |
---|---|
static String |
DOCUMENT_PROPERTIES_HEADER |
protected javax.ws.rs.core.HttpHeaders |
headers |
static String |
MIME_TYPE |
Constructor and Description |
---|
JsonESDocumentWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(DocumentModel arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
javax.ws.rs.core.MediaType arg4) |
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 static void |
writeProperties(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc,
String schema,
javax.servlet.ServletRequest request) |
protected void |
writeSchemas(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc,
String[] schemas) |
protected void |
writeSystemProperties(org.codehaus.jackson.JsonGenerator jg,
DocumentModel doc) |
void |
writeTo(DocumentModel doc,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public static final String MIME_TYPE
public static final String DOCUMENT_PROPERTIES_HEADER
@Context protected javax.ws.rs.core.HttpHeaders headers
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>
public long getSize(DocumentModel arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<DocumentModel>
public void writeTo(DocumentModel doc, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<DocumentModel>
IOException
javax.ws.rs.WebApplicationException
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
IOException
public void writeESDocument(org.codehaus.jackson.JsonGenerator jg, DocumentModel doc, String[] schemas, Map<String,String> contextParameters) throws IOException
IOException
protected static void writeProperties(org.codehaus.jackson.JsonGenerator jg, DocumentModel doc, String schema, javax.servlet.ServletRequest request) throws IOException
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.