Changeset 2055


Ignore:
Timestamp:
01/10/07 10:09:05 (13 years ago)
Author:
melissa
Message:

Be more flexible about how server name is specified - fill in " http://" prefix
and "/shoola" suffix if necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/OMEReader.java

    r2053 r2055  
    8282  /* @see IFormatHandler#isThisType(String) */ 
    8383  public boolean isThisType(String id) { 
    84     return id.startsWith("http"); 
     84    return id.indexOf("id") != -1 && (id.indexOf("password") != -1 || 
     85      id.indexOf("sessionKey") != -1); 
    8586  } 
    8687 
     
    215216    } 
    216217    currentId = imageId; 
    217   
     218 
     219    // do sanity check on server name 
     220    if (!server.startsWith("http")) server = "http://" + server; 
     221    if (!server.endsWith("shoola")) server += "/shoola"; 
     222 
    218223    Criteria c = new Criteria(); 
    219224    c.addWantedField("id"); 
Note: See TracChangeset for help on using the changeset viewer.