Revision: 4637
          http://sourceforge.net/p/vexi/code/4637
Author:   mkpg2
Date:     2014-01-03 16:59:03 +0000 (Fri, 03 Jan 2014)
Log Message:
-----------
Fix/make backwards compatible. 'origin' should default to using the codebase if 
an applet and parameter not available.

Modified Paths:
--------------
    trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/Launcher.java
    trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherApplet.java
    trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherMain.java

Modified: trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/Launcher.java
===================================================================
--- trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/Launcher.java       
2014-01-03 14:54:31 UTC (rev 4636)
+++ trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/Launcher.java       
2014-01-03 16:59:03 UTC (rev 4637)
@@ -35,6 +35,7 @@
                public void updateStatus(String msg);
                public void updateError(String msg);
                public String  getParameter(String s);
+           public String getOrigin();
                public void check() throws Problem;
                public void exited();
        }
@@ -358,7 +359,7 @@
             
             
             command.add("-biscuitid");
-            command.add(DotVexi.urlUniqueName(context.getParameter("origin")));
+            command.add(DotVexi.urlUniqueName(context.getOrigin()));
             
             
             for (int i = 0; i<10000;i++) {

Modified: 
trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherApplet.java
===================================================================
--- trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherApplet.java 
2014-01-03 14:54:31 UTC (rev 4636)
+++ trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherApplet.java 
2014-01-03 16:59:03 UTC (rev 4637)
@@ -78,6 +78,8 @@
     private Image backbuffer = null;
     
     public String getOrigin() {
+       String r = getParameter("origin");
+       if(r!=null) return r;
        return ""+getCodeBase();
     }
     

Modified: 
trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherMain.java
===================================================================
--- trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherMain.java   
2014-01-03 14:54:31 UTC (rev 4636)
+++ trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherMain.java   
2014-01-03 16:59:03 UTC (rev 4637)
@@ -138,6 +138,7 @@
        public void updateStatus(String msg) {  }
 
        public String getParameter(String key) { return params.get(key); }
+    public String getOrigin() { return getParameter("origin"); }
        
        public void check() throws Problem {}
        

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to