[MOBY-guts] biomoby commit

Eddie Kawas kawas at dev.open-bio.org
Sat Jan 27 00:22:55 UTC 2007


kawas
Fri Jan 26 19:22:55 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/utilities
In directory dev.open-bio.org:/tmp/cvs-serv2661/Java/src/main/org/biomoby/client/ui/graphical/servlet/utilities

Modified Files:
	ServiceTester.java 
Log Message:
set the user agent for the pinger
moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/utilities ServiceTester.java,1.10,1.11
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/utilities/ServiceTester.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/utilities/ServiceTester.java	2007/01/27 00:20:45	1.10
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/utilities/ServiceTester.java	2007/01/27 00:22:55	1.11
@@ -7,6 +7,7 @@
 import java.util.Collections;
 import java.util.Date;
 import java.util.HashMap;
+import java.util.Hashtable;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.TreeMap;
@@ -17,6 +18,7 @@
 import org.apache.axis.AxisFault;
 import org.apache.axis.client.Call;
 import org.apache.axis.client.Service;
+import org.apache.axis.transport.http.HTTPConstants;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.log4j.Logger;
@@ -384,6 +386,11 @@
 			Service service = new Service();
 			call = (Call) service.createCall();
 			call.setTargetEndpointAddress(endpoint);
+			// set the agent
+			Hashtable<String, String> t = new Hashtable<String, String>();
+		    t.put(HTTPConstants.HEADER_USER_AGENT, "MobyPinger/1.0");
+			call.setProperty(HTTPConstants.REQUEST_HEADERS, t);
+			
 			// wait at most 2 minutes
 			call.setTimeout(new Integer(1000 * 60 * 3));
 




More information about the MOBY-guts mailing list