tolerate https:// in all constructors
authorAleš Křenek <ljocha@ics.muni.cz>
Tue, 15 Sep 2009 11:22:38 +0000 (11:22 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Tue, 15 Sep 2009 11:22:38 +0000 (11:22 +0000)
org.glite.jobid.api-java/src/org/glite/jobid/Jobid.java

index e6ddbf4..abc1d20 100644 (file)
@@ -104,7 +104,10 @@ public class Jobid {
             throw new IllegalArgumentException("Jobid unique");
         }
         
-        this.bkserver = bkserver;
+        if (bkserver.indexOf("https://") == -1)
+               this.bkserver = "https://" + bkserver;
+        else this.bkserver = bkserver;
+
         this.port = port;
         this.unique = unique;
     }