[MOBY-guts] biomoby commit

Gary Schlitz gss at pub.open-bio.org
Thu Nov 4 22:34:16 UTC 2004


gss
Thu Nov  4 17:34:16 EST 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets
In directory pub.open-bio.org:/tmp/cvs-serv32102/src/org/smoby/ref/servlets

Modified Files:
	ProviderEngagementServlet.java 
Log Message:
Misc

moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets ProviderEngagementServlet.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets/ProviderEngagementServlet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets/ProviderEngagementServlet.java	2004/07/21 22:01:19	1.1
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets/ProviderEngagementServlet.java	2004/11/04 22:34:16	1.2
@@ -1,23 +1,25 @@
 package org.smoby.ref.servlets;
 
 import java.io.*;
-
 import javax.servlet.*;
 import javax.servlet.http.*;
 
-import org.smoby.servlet.ParamReader;
-import org.smoby.servlet.ParameterException;
+import org.smoby.ref.tools.*;
+import org.smoby.servlet.*;
 
 public class ProviderEngagementServlet extends BaseServlet
 {
-	public void doGet(HttpServletRequest request, HttpServletResponse response)
+	/**
+	 * When engaged through a GET...
+	 */
+	public void doGet(HttpServletRequest request,
+			          HttpServletResponse response)
 		throws ServletException, IOException
 	{
-		
-		String providerURL = null;
+		String providerURI = null;
 		
 		try {
-			providerURL = ParamReader.getParameter("provider-url", request);
+			providerURI = ParamReader.getParameter("provider-url", request);
 		}
 		catch (ParameterException e)
         {
@@ -29,10 +31,11 @@
 		PrintStream out = new PrintStream(response.getOutputStream());
 		
         response.setContentType("text/html");
-        startHTML(response, out);
-        out.println("Sorry, the invocation interface is still");
-        out.println("under development. Please check back soon.");
-        finishHTML(response, out);
+        startHTML(response, "Semantic MOBY provider invocation", out);
+        InvocationBroker broker =
+        	new InvocationBroker(this, request, response, out);
+        broker.invokeURI(providerURI);
+        finishHTML(out);
 	}
 	
 	public void doPost(HttpServletRequest request, HttpServletResponse response)




More information about the MOBY-guts mailing list