Changeset 20806


Ignore:
Timestamp:
05/03/10 17:06:45 (2 years ago)
Author:
rns
Message:

Temporary change to enable gzipping of gff output, exporters need some refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modmine/webapp/src/org/modmine/web/FeaturesAction.java

    r20792 r20806  
    4242import org.intermine.web.struts.ForwardParameters; 
    4343import org.intermine.web.struts.InterMineAction; 
     44import org.intermine.web.struts.TableExportForm; 
    4445 
    4546/** 
     
    8081        String experimentName = null; 
    8182 
     83        boolean doGzip = false; 
     84        if (request.getParameter("gzip") != null 
     85                && request.getParameter("gzip").equalsIgnoreCase("true")) { 
     86            doGzip = true; 
     87        } 
     88         
    8289        PathQuery q = new PathQuery(model); 
    8390 
     
    234241            } 
    235242 
    236             exporter.export(pt, request, response, null); 
     243            TableExportForm exportForm = null; 
     244            if (format.equals("gff3")) { 
     245                 
     246                exportForm = new TableExportForm(); 
     247                exportForm.setDoGzip(doGzip); 
     248            } 
     249            exporter.export(pt, request, response, exportForm); 
    237250 
    238251            // If null is returned then no forwarding is performed and 
Note: See TracChangeset for help on using the changeset viewer.