[MOBY-guts] biomoby commit

Eddie Kawas kawas at pub.open-bio.org
Thu Apr 7 22:55:07 UTC 2005


kawas
Thu Apr  7 18:55:07 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory pub.open-bio.org:/tmp/cvs-serv5769/org/biomoby/client

Modified Files:
	GraphsServlet.java 
Log Message:
made static variable access really static access.

moby-live/Java/src/main/org/biomoby/client GraphsServlet.java,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/GraphsServlet.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/GraphsServlet.java	2005/04/07 16:37:02	1.8
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/GraphsServlet.java	2005/04/07 22:55:06	1.9
@@ -61,6 +61,10 @@
     extends HttpServlet
     implements HtmlConstants {
 
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
     // names of the init parameters (note that these same names are
     // also used in 'src/webapps/web.xml.template' file; if you wish
     // to change them, change them on both places)
@@ -348,7 +352,7 @@
 		worker.registry.setDebug (debug);
 		registries.put (key, worker);
 	    } catch (MobyException e) {
-		error (res, res.SC_SERVICE_UNAVAILABLE, e);
+		error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE, e);
 		return;
 	    }
 	}
@@ -428,7 +432,7 @@
 	    namespaces  = registry.getNamespaces();
 	    lastRead = getLastRead();
 	} catch (MobyException e) {
- 	    error (res, res.SC_SERVICE_UNAVAILABLE, e);
+ 	    error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE, e);
 	    return;
 	}
 
@@ -763,12 +767,12 @@
 	    }
 	}
 	if (! supported) {
-	    error (res, res.SC_SERVICE_UNAVAILABLE,
+	    error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE,
 		   new MobyException ("Unrecognized output type '" + wantedOutputType + "'."));
 	    return;
 	}
 	if (filter.equals (FILTER_DATAPATH) && wantedOutputType.equals (T_RDF)) {
-	    error (res, res.SC_SERVICE_UNAVAILABLE,
+	    error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE,
 		   new MobyException ("Sorry, RDF type for graphs of data paths is not supported."));
 	    return;
 	}
@@ -834,7 +838,7 @@
 	if (filter.equals (FILTER_SELECT)) {
 	    if ( (authorities == null || authorities.length == 0) &&
 		 (serviceNames == null || serviceNames.length == 0) ) {
-		error (res, res.SC_SERVICE_UNAVAILABLE,
+		error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE,
 		       new MobyException ("Please, select at least one authority or one service name."));
 		return;
 	    }
@@ -879,7 +883,7 @@
 	    res.sendRedirect (res.encodeRedirectURL (cache.getURL (pageId)));
 
 	} catch (MobyException e) {
-	    error (res, res.SC_SERVICE_UNAVAILABLE, e);
+	    error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE, e);
 	    return;
 	}
     }
@@ -1330,7 +1334,7 @@
 	    }
 	}
 	if (! supported) {
-	    error (res, res.SC_SERVICE_UNAVAILABLE,
+	    error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE,
 		   new MobyException ("Unrecognized output type '" + wantedOutputType + "'."));
 	    return;
 	}
@@ -1365,7 +1369,7 @@
 	    res.sendRedirect (res.encodeRedirectURL (cache.getURL (pageId)));
 
 	} catch (MobyException e) {
-	    error (res, res.SC_SERVICE_UNAVAILABLE, e);
+	    error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE, e);
 	    return;
 	}
     }
@@ -1443,7 +1447,7 @@
 	    }
 	}
 	if (! supported) {
-	    error (res, res.SC_SERVICE_UNAVAILABLE,
+	    error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE,
 		   new MobyException ("Unrecognized output type '" + wantedOutputType + "'."));
 	    return;
 	}
@@ -1469,7 +1473,7 @@
 	    res.sendRedirect (res.encodeRedirectURL (cache.getURL (id)));
 	
 	} catch (MobyException e) {
-	    error (res, res.SC_SERVICE_UNAVAILABLE, e);
+	    error (res, HttpServletResponse.SC_SERVICE_UNAVAILABLE, e);
 	    return;
 	}
     }




More information about the MOBY-guts mailing list