[MOBY-guts] biomoby commit

Eddie Kawas kawas at dev.open-bio.org
Thu Feb 1 14:48:54 UTC 2007


kawas
Thu Feb  1 09:48:54 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util
In directory dev.open-bio.org:/tmp/cvs-serv10752/Java/src/main/org/biomoby/registry/rdfagent/util

Modified Files:
	CentralAdmin.java 
Log Message:
added a user agent header
moby-live/Java/src/main/org/biomoby/registry/rdfagent/util CentralAdmin.java,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util/CentralAdmin.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/registry/rdfagent/util/CentralAdmin.java	2006/02/22 16:41:38	1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util/CentralAdmin.java	2007/02/01 14:48:54	1.4
@@ -2,6 +2,7 @@
 
 import java.net.MalformedURLException;
 import java.net.URL;
+import java.util.Hashtable;
 
 import javax.xml.rpc.ParameterMode;
 import javax.xml.rpc.ServiceException;
@@ -9,6 +10,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;
 
 /**
  * 
@@ -85,6 +87,9 @@
 					String.class, ParameterMode.IN);
 			call.setPassword(password);
 			call.setUsername(username);
+		    Hashtable<String, String> t = new Hashtable<String, String>();
+		    t.put(HTTPConstants.HEADER_USER_AGENT, "RDFAgent/1.0");
+			call.setProperty(HTTPConstants.REQUEST_HEADERS, t);
 			String xml = "<CentralAdmin>" + "\t<name>" + servicename
 					+ "</name>" + "\t<phrase>" + phrase + "</phrase>"
 					+ "\t<authority>" + authority + "</authority>"




More information about the MOBY-guts mailing list