[MOBY-guts] biomoby commit

Eddie Kawas kawas at dev.open-bio.org
Mon Oct 16 17:23:16 UTC 2006


kawas
Mon Oct 16 13:23:15 EDT 2006
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms
In directory dev.open-bio.org:/tmp/cvs-serv16466/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms

Modified Files:
	CallableServicesServlet.java RDFAgentValidator.java 
Log Message:

moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms CallableServicesServlet.java,1.3,1.4 RDFAgentValidator.java,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms/CallableServicesServlet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms/CallableServicesServlet.java	2006/10/11 01:54:50	1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms/CallableServicesServlet.java	2006/10/16 17:23:15	1.4
@@ -82,7 +82,26 @@
 
 		String authority = filter(request.getParameter("authority"));
 		String servicename = filter(request.getParameter("service"));
-
+		String getStats = filter(request.getParameter("getStats"));
+		if (getStats != null) {
+			response.setContentType("text/plain");
+			if (scheduler == null || scheduler.getServiceTester() == null) {
+				PrintWriter out = response.getWriter();
+				out.print("Sorry, there are no stats available at the moment. Please try again in a few minutes(x0011).");
+				return;
+			} else {
+				if (scheduler.getServiceTester().getResultMap() == null
+						|| scheduler.getServiceTester().getResultMap().isEmpty()) {
+					PrintWriter out = response.getWriter();
+					out.print("Sorry, there are no stats available at the moment. Please try again in a few minutes(x0012).");
+					return;
+				}
+				PrintWriter out = response.getWriter();
+				out.print(scheduler.getServiceTester().getStats());
+				return;
+			}
+		}
+	
 		if (scheduler == null) {
 			response
 					.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms/RDFAgentValidator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms/RDFAgentValidator.java	2006/10/11 01:54:50	1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/forms/RDFAgentValidator.java	2006/10/16 17:23:15	1.4
@@ -72,16 +72,17 @@
 		url = url.trim();
 		url = URLDecoder.decode(url, "UTF-8");
 
-		String pre = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
-				+ "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
-				+ "<head>\n"
-				+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n"
-				+ "<title>RDF Agent Validator Output</title>\n"
-				+ "</head>\n"
-				+ "\n"
-				+ "<body>\n <strong>" + url + "</strong><p><pre>";
+		String pre = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
+				+ "<html xmlns=\"http://www.w3.org/1999/xhtml\">"
+				+ "<head>"
+				+ "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://"+ request.getServerName() + ":" + request.getServerPort()+  request.getContextPath()+ "/stylesheet.css\"/>"
+				+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />"
+				+ "<title>RDF Agent Validator Output</title>"
+				+ "</head>"
+				+ ""
+				+ "<body> <strong>" + url + "</strong><p><pre>";
 
-		String post = "</pre></body>\n" + "</html>";
+		String post = "</pre></body>" + "</html>";
 
 		Properties prop = MobyProperties.SERVICE_INSTANCE_PROPERTIES();
 		String rdfagent = (String) prop.get("rdfagent");




More information about the MOBY-guts mailing list