- 更新日時:
- 2014/09/25 11:06:29 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/PLServlet.java
r123 r149 14 14 import javax.servlet.http.HttpServletRequest; 15 15 import javax.servlet.http.HttpServletResponse; 16 import javax.servlet.http.HttpSession; 16 17 import org.biohackathon.SPARQLBuilder.OWL.*; 17 18 … … 70 71 String en = request.getParameter("endclass"); 71 72 72 QueryPathGenerator qpg = new QueryPathGenerator(ep, FILENAME); 73 HttpSession session = request.getSession(); 74 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 75 if ( qpg == null ){ 76 qpg = new QueryPathGenerator(ep); 77 } 73 78 Path[] paths = qpg.getPaths(st, en, true); 74 79 String jsonstr = "{\"paths\":["; … … 83 88 System.out.println(jsonstr); 84 89 out.print(jsonstr); 90 //List<Path> 91 //session.setAttribute("pathlist", pathlist); 85 92 } 86 93