- 更新日時:
- 2014/09/25 11:06:29 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/CLServlet.java
r130 r149 16 16 import javax.servlet.http.HttpServletRequest; 17 17 import javax.servlet.http.HttpServletResponse; 18 import javax.servlet.http.HttpSession; 18 19 import org.biohackathon.SPARQLBuilder.OWL.*; 19 20 … … 69 70 PrintWriter out = response.getWriter(); 70 71 String ep = request.getParameter("ep"); 71 QueryPathGenerator qpg = new QueryPathGenerator(ep, FILENAME); 72 HttpSession session = request.getSession(); 73 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 74 if ( qpg == null ){ 75 qpg = new QueryPathGenerator(); 76 } 77 qpg.setSPARQLendpoint(ep); 72 78 SClass[] classes = qpg.getClasses(null); 73 79 JsonBuilderFactory jbfactory = Json.createBuilderFactory(null);