Update of /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/utils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26409/src/net/sf/magicmap/client/utils
Modified Files:
Settings.java
Log Message:
+set webservice path via CLI
Index: Settings.java
===================================================================
RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/utils/Settings.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Settings.java 12 Feb 2005 16:00:29 -0000 1.2
--- Settings.java 15 Feb 2005 15:06:39 -0000 1.3
***************
*** 14,18 ****
public static final int TIMEOUT = 15000;
public static final int POLL_INTERVAL = 5000;
! public static final String SUFFIX = "/magicmap/services/";
public static String clientMAC = "BLUBBER";
--- 14,18 ----
public static final int TIMEOUT = 15000;
public static final int POLL_INTERVAL = 5000;
! public static String WEBSERVICE_PATH = "/magicmap/services/";
public static String clientMAC = "BLUBBER";
***************
*** 48,52 ****
public static String getServerURL(){
! return "http://" + hostname + ":" + port + SUFFIX;
}
--- 48,52 ----
public static String getServerURL(){
! return "http://" + hostname + ":" + port + WEBSERVICE_PATH;
}
***************
*** 64,66 ****
--- 64,83 ----
}
+ /**
+ * @param args
+ */
+ public static void setup(String[] args){
+ if (args!=null && args.length>0){
+ for (int i = 0; i < args.length; i++){
+ boolean accepted = false;
+ String arg = args[i].toLowerCase();
+ if (arg.equals("--webservicepath")){
+ i++;
+ WEBSERVICE_PATH = args[i];
+ }
+ }
+ }
+
+ }
+
}
\ No newline at end of file
|