Class CSVHttpExporter

  • All Implemented Interfaces:
    TableHttpExporter

    public class CSVHttpExporter
    extends StandardHttpExporter
    Exporter that exports table with results in comma separated format.
    Author:
    Jakub Kulaviak
    • Constructor Detail

      • CSVHttpExporter

        public CSVHttpExporter()
        Constructor.
    • Method Detail

      • 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
      • getExporter

        protected Exporter getExporter​(java.io.OutputStream out,
                                       java.lang.String separator,
                                       java.util.List<java.lang.String> headers)
        Do the export.
        Specified by:
        getExporter in class StandardHttpExporter
        Parameters:
        out - output stream
        separator - 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.