[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Mon Jun 30 21:22:08 UTC 2008
gordonp
Mon Jun 30 17:22:08 EDT 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv10669/src/main/org/biomoby/shared
Modified Files:
LSIDResolver.java
Log Message:
Added isLSID method for strings
moby-live/Java/src/main/org/biomoby/shared LSIDResolver.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/LSIDResolver.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/LSIDResolver.java 2008/03/12 17:47:18 1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/LSIDResolver.java 2008/06/30 21:22:08 1.2
@@ -69,6 +69,10 @@
}
}
+ public static boolean isLSID(String id){
+ return id.matches("urn:lsid:(\\S+?):.*:.*");
+ }
+
public URL findAuthorityWSDL(String lsid) throws Exception{
String lsidAuthority = lsid.replaceFirst("^urn:lsid:(\\S+?):.*:.*$", "$1");
if(lsidAuthority == null || lsidAuthority.equals(lsid)){
@@ -143,7 +147,7 @@
}
}
if(getAvailableServicesURLHTTP != null){
- System.err.println("HTTP for getAvailableServices: " + getAvailableServicesURLHTTP);
+ //System.err.println("HTTP for getAvailableServices: " + getAvailableServicesURLHTTP);
URL servicesURL = null;
if("GET".equals(getAvailableServicesURLHTTPVerb)){
servicesURL = new URL(getAvailableServicesURLHTTP, "?lsid="+lsid);
@@ -282,7 +286,7 @@
else{
// baseURL is a bad assumption, as the node may be from an import in another location
URL metaURL = new URL(baseURL, ((Element) addrs.item(0)).getAttribute("location"));
- System.err.println("Meta URL is " + metaURL);
+ //System.err.println("Meta URL is " + metaURL);
return new URL(metaURL.getProtocol()+"://"+metaURL.getHost()+
metaURL.getPath()+"?lsid="+lsid); //assumes GET for now
}
More information about the MOBY-guts
mailing list