[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:16 EDT 2006
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jresources
In directory dev.open-bio.org:/tmp/cvs-serv16466/Java/src/main/org/biomoby/client/ui/graphical/servlet/jresources

Modified Files:
	RESOURCE.java 
Log Message:

moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jresources RESOURCE.java,1.23,1.24
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jresources/RESOURCE.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jresources/RESOURCE.java	2006/10/11 01:54:51	1.23
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/ui/graphical/servlet/jresources/RESOURCE.java	2006/10/16 17:23:16	1.24
@@ -125,7 +125,7 @@
 		OBJ = (String) cLoader.getURI_MAP().get("Object");
 		SRV = (String) cLoader.getURI_MAP().get("Service");
 		NS = (String) cLoader.getURI_MAP().get("Namespace");
-		PRED = "http://biomoby.org/RESOURCES/MOBY-S/Predicates#";
+		PRED = "http://biomoby.org/authority/RESOURCES/MOBY-S/Predicates#";
 		SI = (String) cLoader.getURI_MAP().get("ServiceInstance");
 	}
 
@@ -143,6 +143,7 @@
 		PrintWriter out = response.getWriter();
 		String path = request.getPathInfo();
 		if (path == null) {
+			response.setContentType("text/html");
 			out
 					.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"><title>not MOBY-S</title></head><body><h2>not MOBY-S </h2></body></html>");
 			return;
@@ -150,6 +151,7 @@
 		Pattern p = Pattern.compile("/MOBY\\-S/(\\S+)");
 		Matcher m = p.matcher(path);
 		if (!m.matches()) {
+			response.setContentType("text/html");
 			out
 					.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"><title>not MOBY-S</title></head><body><h2>not MOBY-S </h2></body></html>");
 			return;




More information about the MOBY-guts mailing list