- 更新日時:
- 2014/11/11 14:23:58 (10 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www
- ファイル:
-
- 4 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/CLServlet.java
r197 r204 69 69 //processRequest(request, response); 70 70 response.setContentType("application/json;charset=UTF-8"); 71 response.setHeader("Access-Control-Allow-Origin", "*"); 72 response.setHeader("Access-Control-Allow-Methods", "GET"); 73 response.setHeader("Access-Control-Allow-Headers", request.getHeader("Access-Control-Request-Headers")); 74 response.setHeader("Access-Control-Max-Age", "-1"); 71 75 PrintWriter out = response.getWriter(); 72 76 String ep = request.getParameter("ep"); … … 74 78 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 75 79 if ( qpg == null ){ 76 //QueryPathGenerator77 80 qpg = new QueryPathGenerator(); 78 81 } -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/EPServlet.java
r175 r204 72 72 73 73 response.setContentType("application/json;charset=UTF-8"); 74 response.setHeader("Access-Control-Allow-Origin", "*"); 75 response.setHeader("Access-Control-Allow-Methods", "GET"); 76 response.setHeader("Access-Control-Allow-Headers", request.getHeader("Access-Control-Request-Headers")); 77 response.setHeader("Access-Control-Max-Age", "-1"); 74 78 PrintWriter out = response.getWriter(); 75 79 if ( qpg == null ){ -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/PLServlet.java
r175 r204 66 66 //processRequest(request, response); 67 67 response.setContentType("application/json;charset=UTF-8"); 68 response.setHeader("Access-Control-Allow-Origin", "*"); 69 response.setHeader("Access-Control-Allow-Methods", "GET"); 70 response.setHeader("Access-Control-Allow-Headers", request.getHeader("Access-Control-Request-Headers")); 71 response.setHeader("Access-Control-Max-Age", "-1"); 68 72 PrintWriter out = response.getWriter(); 69 73 String ep = request.getParameter("ep"); -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/SPServlet.java
r193 r204 78 78 //processRequest(request, response); 79 79 response.setContentType("application/json;charset=UTF-8"); 80 PrintWriter out = response.getWriter(); 80 response.setHeader("Access-Control-Allow-Origin", "*"); 81 response.setHeader("Access-Control-Allow-Methods", "GET"); 82 response.setHeader("Access-Control-Allow-Headers", request.getHeader("Access-Control-Request-Headers")); 83 response.setHeader("Access-Control-Max-Age", "-1"); 84 PrintWriter out = response.getWriter(); 81 85 String jpath = request.getParameter("jsonpath"); 82 86 Path path = null;