org.intermine.web.logic.export.http
Class ExcelHttpExporter

java.lang.Object
  extended by org.intermine.web.logic.export.http.HttpExporterBase
      extended by org.intermine.web.logic.export.http.StandardHttpExporter
          extended by org.intermine.web.logic.export.http.ExcelHttpExporter
All Implemented Interfaces:
TableHttpExporter

public class ExcelHttpExporter
extends StandardHttpExporter

Exporter that exports table with results in excel format.


Constructor Summary
ExcelHttpExporter()
           
 
Method Summary
 void export(PagedTable pt, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, TableExportForm form)
          Perform export.
protected  Exporter getExporter(java.io.OutputStream out, java.lang.String lineSeparator, java.util.List<java.lang.String> headers)
          Do the export.
protected  void setResponseHeader(javax.servlet.http.HttpServletResponse response, boolean doGzip)
          Sets header and content type of result in response.
 
Methods inherited from class org.intermine.web.logic.export.http.StandardHttpExporter
canExport, getInitialExportPaths
 
Methods inherited from class org.intermine.web.logic.export.http.HttpExporterBase
getResultRows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelHttpExporter

public ExcelHttpExporter()
Method Detail

export

public void export(PagedTable pt,
                   javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   TableExportForm form)
Perform export.

Specified by:
export in interface TableHttpExporter
Overrides:
export in class StandardHttpExporter
Parameters:
pt - exported PagedTable
request - request
response - response
form - the form

getExporter

protected Exporter getExporter(java.io.OutputStream out,
                               java.lang.String lineSeparator,
                               java.util.List<java.lang.String> headers)
Do the export.

Specified by:
getExporter in class StandardHttpExporter
Parameters:
out - output stream
lineSeparator - line separator
headers - if non-null, a list of the column headers which will be written by export()
Returns:
exporter that will perform the business logic of export.

setResponseHeader

protected void setResponseHeader(javax.servlet.http.HttpServletResponse response,
                                 boolean doGzip)
Sets header and content type of result in response.

Specified by:
setResponseHeader in class StandardHttpExporter
Parameters:
response - response
doGzip - whether to compress the stream