1134 |
22 Jun 09 |
nicklas |
1 |
<%-- $Id$ |
1132 |
18 Jun 09 |
nicklas |
2 |
------------------------------------------------------------------ |
1132 |
18 Jun 09 |
nicklas |
Copyright (C) 2009 Nicklas Nordborg |
1132 |
18 Jun 09 |
nicklas |
4 |
|
1132 |
18 Jun 09 |
nicklas |
5 |
This file is part of BASE - BioArray Software Environment. |
1132 |
18 Jun 09 |
nicklas |
6 |
Available at http://base.thep.lu.se/ |
1132 |
18 Jun 09 |
nicklas |
7 |
|
1132 |
18 Jun 09 |
nicklas |
8 |
BASE is free software; you can redistribute it and/or |
1132 |
18 Jun 09 |
nicklas |
9 |
modify it under the terms of the GNU General Public License |
1132 |
18 Jun 09 |
nicklas |
10 |
as published by the Free Software Foundation; either version 2 |
1132 |
18 Jun 09 |
nicklas |
11 |
of the License, or (at your option) any later version. |
1132 |
18 Jun 09 |
nicklas |
12 |
|
1132 |
18 Jun 09 |
nicklas |
13 |
BASE is distributed in the hope that it will be useful, |
1132 |
18 Jun 09 |
nicklas |
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
1132 |
18 Jun 09 |
nicklas |
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1132 |
18 Jun 09 |
nicklas |
16 |
GNU General Public License for more details. |
1132 |
18 Jun 09 |
nicklas |
17 |
|
1132 |
18 Jun 09 |
nicklas |
18 |
You should have received a copy of the GNU General Public License |
1132 |
18 Jun 09 |
nicklas |
19 |
along with this program; if not, write to the Free Software |
1132 |
18 Jun 09 |
nicklas |
20 |
Foundation, Inc., 59 Temple Place - Suite 330, |
1132 |
18 Jun 09 |
nicklas |
21 |
Boston, MA 02111-1307, USA. |
1132 |
18 Jun 09 |
nicklas |
22 |
------------------------------------------------------------------ |
1132 |
18 Jun 09 |
nicklas |
23 |
|
1134 |
22 Jun 09 |
nicklas |
24 |
@author Nicklas |
1132 |
18 Jun 09 |
nicklas |
25 |
--%> |
1132 |
18 Jun 09 |
nicklas |
26 |
<%@ page |
1132 |
18 Jun 09 |
nicklas |
27 |
pageEncoding="UTF-8" |
1132 |
18 Jun 09 |
nicklas |
28 |
session="false" |
1134 |
22 Jun 09 |
nicklas |
29 |
import="net.sf.basedb.core.Application" |
1134 |
22 Jun 09 |
nicklas |
30 |
import="net.sf.basedb.util.StaticCache" |
1134 |
22 Jun 09 |
nicklas |
31 |
import="net.sf.basedb.util.FileUtil" |
1132 |
18 Jun 09 |
nicklas |
32 |
%> |
1132 |
18 Jun 09 |
nicklas |
33 |
<% |
1132 |
18 Jun 09 |
nicklas |
34 |
String file = request.getParameter("file"); |
1132 |
18 Jun 09 |
nicklas |
35 |
String task = request.getParameter("task"); |
1132 |
18 Jun 09 |
nicklas |
36 |
StaticCache cache = Application.getStaticCache(); |
1132 |
18 Jun 09 |
nicklas |
37 |
response.resetBuffer(); |
1132 |
18 Jun 09 |
nicklas |
38 |
String key = cache.makeValidKey("gp-integration/" + task + "/" + file, "-"); |
1132 |
18 Jun 09 |
nicklas |
39 |
FileUtil.copy(cache.read(key, 1000), response.getOutputStream()); |
1132 |
18 Jun 09 |
nicklas |
40 |
%> |