APISonar


water.api.DownloadDataHandler.DownloadData.csv

> water > api > DownloadDataHandler > DownloadData > csv
water APIs api APIs DownloadDataHandler APIs DownloadData APIs csv APIs

Example 1
@Override public DownloadDataV1 fillFromImpl(DownloadData dd) {
    key = dd.src_key;
    hex_string = dd.hex_string;
    csv = dd.csv;
    filename = dd.filename;
    return this;
  }
Example 2
private Response wrap2(String http_code, Schema s) {
    DownloadData dd = (DownloadData) s.fillFromSchema();
    Response res = new Response(http_code, MIME_DEFAULT_BINARY, dd.csv);
    res.addHeader("Content-Disposition", "filename=" + dd.filename);
    return res;
  }