public class XLSXResponseWriter extends RawResponseWriter
CONTENT
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8
Constructor and Description |
---|
XLSXResponseWriter() |
Modifier and Type | Method and Description |
---|---|
String |
getContentType(SolrQueryRequest request,
SolrQueryResponse response)
Return the applicable Content Type for a request, this method
must be thread safe.
|
void |
write(OutputStream out,
SolrQueryRequest req,
SolrQueryResponse rsp)
Use it to write the response in a binary format
|
getBaseWriter, init, write
public XLSXResponseWriter()
public void write(OutputStream out, SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
BinaryQueryResponseWriter
write
in interface BinaryQueryResponseWriter
write
in class RawResponseWriter
IOException
public String getContentType(SolrQueryRequest request, SolrQueryResponse response)
QueryResponseWriter
QueryResponseWriter's must implement this method to return a valid HTTP Content-Type header for the request, that will logically correspond with the output produced by the write method.
getContentType
in interface QueryResponseWriter
getContentType
in class RawResponseWriter