summaryrefslogtreecommitdiff
path: root/reach_reports
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-09-10 10:39:44 +0200
committermguetlein <martin.guetlein@gmail.com>2010-09-10 10:39:44 +0200
commit543490dc2bc883412ed25d03a33d94b52786873d (patch)
tree913cc46cd25d441d5044cfd1dbbba5f6691eaf19 /reach_reports
parentc31ba22137a3139cdcd283bfc1712aa484cce897 (diff)
params for task and qmrf jnlp
Diffstat (limited to 'reach_reports')
-rw-r--r--reach_reports/reach_application.rb91
1 files changed, 90 insertions, 1 deletions
diff --git a/reach_reports/reach_application.rb b/reach_reports/reach_application.rb
index 74a1006..87bfcbe 100644
--- a/reach_reports/reach_application.rb
+++ b/reach_reports/reach_application.rb
@@ -35,7 +35,7 @@ end
get '/reach_report/:type/:id' do
type = extract_type(params)
- LOGGER.info "get "+type+" report with id "+params[:id].to_s+"' "+request.env['HTTP_ACCEPT'].to_s+"'"
+ LOGGER.info "get "+type+" report with id '"+params[:id].to_s+"' "+request.env['HTTP_ACCEPT'].to_s+"'"
rep = ReachReports.get_report(type, params[:id])
case request.env['HTTP_ACCEPT'].to_s
@@ -75,6 +75,8 @@ post '/reach_report/:type/:id' do
#f.puts rep.to_xml
end
+
+
#get '/reach_report/:type/:id/:section' do
#
# type = extract_type(params)
@@ -89,3 +91,90 @@ end
# ReachReports.get_report(type, params[:id], params[:section], params[:subsection]).to_yaml
#end
+get '/reach_report/:type/:id/editor' do
+
+ type = extract_type(params)
+ LOGGER.info "editor for "+type+" report with id '"+params[:id].to_s+"' "+params.inspect
+
+ jnlp = <<EOF
+<?xml version ="1.0" encoding="utf-8"?>
+<jnlp spec="1.0+" codebase="http://opentox.informatik.uni-freiburg.de/" href="qmrfedit2/OT_QMRFEditor.jnlp" >
+<information>
+<title>QMRF Editor</title>
+<vendor>www.opentox.org</vendor>
+<description>(Q)SAR Model Reporting Format Editor</description>
+<description kind="short">(Q)SAR Model Reporting Format Editor</description>
+<icon href="qmrfedit2/OTLogo.png" />
+</information>
+<resources>
+<j2se version="1.6+" java-vm-args="-Xincgc"/>
+
+<jar href="qmrfedit2/OT_QMRFEditor.jar" download="eager" main="true"/>
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-applications.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-builder3d.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-charges.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-core.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-datadebug.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-data.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-experimental.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-extra.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-forcefield.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-interfaces.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-io.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-jchempaint.applet.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-jchempaint.application.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-jchempaint.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-libio-cml.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-libio-weka.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-nonotify.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-pdb-cml.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-pdb.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-qsar-cml.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-qsar.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/cdk-qsar-pdb.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/commons-cli-1.0.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/commons-io-1.1.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/commons-logging-1.0.4.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/fop.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/jai_codec.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/jai_core.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/jgrapht-0.6.0.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/jh.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/l2fprod-common-all.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/libfonts-0.1.4.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/log4j-1.2.8.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/log4j.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/mysql-connector-java-5.0.5-bin.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/naming-factory-dbcp.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/naming-factory.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/naming-resources.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/opsin-big-0.1.0.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/org.restlet.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/swing-layout-1.0.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/xmlgraphics-commons-1.1.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/xom-1.1b2.jar" download="lazy" />
+<jar href="qmrfedit2/OT_QMRFEditor_lib/xom-1.1.jar" download="lazy" />
+
+
+</resources>
+<application-desc main-class="ambit.applications.qmrf.QMRFEditor">
+<argument>-x http://opentox.informatik.uni-freiburg.de/validation/reach_report/QMRF/
+EOF
+ jnlp += params[:id].to_s
+
+ jnlp += <<EOF
+</argument>
+<argument>-d http://opentox.informatik.uni-freiburg.de/qmrfedit2/qmrf.dtd</argument>
+<argument>-t http://opentox.informatik.uni-freiburg.de/qmrfedit2/verdana.ttf</argument>
+
+</application-desc>
+<security>
+ <all-permissions/>
+</security>
+</jnlp>
+EOF
+
+ content_type "application/x-java-jnlp-file"
+ jnlp
+end
+