@Provider public class JsonESDocumentListWriter extends JsonDocumentListWriter
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ES_INDEX |
static String |
DEFAULT_ES_TYPE |
static String |
HEADER_CURRENT_PAGE_INDEX |
static String |
HEADER_ERROR_MESSAGE |
static String |
HEADER_HAS_ERROR |
static String |
HEADER_IS_LAST_PAGE_AVAILABLE |
static String |
HEADER_NUMBER_OF_PAGES |
static String |
HEADER_PAGE_SIZE |
static String |
HEADER_RESULTS_COUNT |
static String |
MIME_TYPE |
Constructor and Description |
---|
JsonESDocumentListWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeDocs(org.codehaus.jackson.JsonGenerator jg,
List<DocumentModel> docs,
String[] schemas) |
void |
writeDocs(org.codehaus.jackson.JsonGenerator jg,
List<DocumentModel> docs,
String[] schemas,
javax.ws.rs.core.HttpHeaders headers) |
void |
writeDocuments(OutputStream out,
List<DocumentModel> docs,
String[] schemas) |
void |
writeDocuments(OutputStream out,
List<DocumentModel> docs,
String[] schemas,
javax.ws.rs.core.HttpHeaders headers) |
writeDocuments, writeDocuments, writeTo
getSize, writeEntity
public static final String MIME_TYPE
public static final String HEADER_ERROR_MESSAGE
public static final String HEADER_HAS_ERROR
public static final String HEADER_PAGE_SIZE
public static final String HEADER_RESULTS_COUNT
public static final String HEADER_IS_LAST_PAGE_AVAILABLE
public static final String HEADER_NUMBER_OF_PAGES
public static final String HEADER_CURRENT_PAGE_INDEX
public static final String DEFAULT_ES_INDEX
public static final String DEFAULT_ES_TYPE
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<List<DocumentModel>>
isWriteable
in class JsonDocumentListWriter
public void writeDocuments(OutputStream out, List<DocumentModel> docs, String[] schemas, javax.ws.rs.core.HttpHeaders headers) throws IOException
writeDocuments
in class JsonDocumentListWriter
IOException
public void writeDocuments(OutputStream out, List<DocumentModel> docs, String[] schemas) throws IOException
writeDocuments
in class JsonDocumentListWriter
IOException
public void writeDocs(org.codehaus.jackson.JsonGenerator jg, List<DocumentModel> docs, String[] schemas) throws IOException
IOException
public void writeDocs(org.codehaus.jackson.JsonGenerator jg, List<DocumentModel> docs, String[] schemas, javax.ws.rs.core.HttpHeaders headers) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.