/hg/release/icedtea-web-1.2: Add ability to check for use of jnl...

ddadacha at icedtea.classpath.org ddadacha at icedtea.classpath.org
Wed Feb 22 07:22:24 PST 2012


changeset c9a253d0952b in /hg/release/icedtea-web-1.2
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.2?cmd=changeset;node=c9a253d0952b
author: Danesh Dadachanji <ddadacha at redhat.com>
date: Wed Feb 22 10:18:45 2012 -0500

	Add ability to check for use of jnlp_href outside of PluginBridge.


diffstat:

 ChangeLog                                   |  7 +++++++
 netx/net/sourceforge/jnlp/PluginBridge.java |  7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diffs (52 lines):

diff -r c959afd1eba7 -r c9a253d0952b ChangeLog
--- a/ChangeLog	Mon Feb 13 11:35:49 2012 -0500
+++ b/ChangeLog	Wed Feb 22 10:18:45 2012 -0500
@@ -1,3 +1,10 @@
+2012-02-22  Danesh Dadachanji  <ddadacha at redhat.com>
+
+	Add ability to check for jnlp_href use outside of PluginBridge.
+	* netx/net/sourceforge/jnlp/PluginBridge.java
+	(PluginBridge): New boolean useJNLPHref is set if jnlp_href is used.
+	(useJNLPHref): New getter method, returns boolean useJNLPHref.
+
 2012-02-10  Danesh Dadachanji  <ddadacha at redhat.com>
 
 	Fix path to NEW_LINE_IFS for when one builds outside of src directory.
diff -r c959afd1eba7 -r c9a253d0952b netx/net/sourceforge/jnlp/PluginBridge.java
--- a/netx/net/sourceforge/jnlp/PluginBridge.java	Mon Feb 13 11:35:49 2012 -0500
+++ b/netx/net/sourceforge/jnlp/PluginBridge.java	Wed Feb 22 10:18:45 2012 -0500
@@ -44,6 +44,7 @@
     private boolean usePack;
     private boolean useVersion;
     private boolean codeBaseLookup;
+    private boolean useJNLPHref;
 
     public PluginBridge(URL codebase, URL documentBase, String jar, String main,
                         int width, int height, Hashtable<String, String> atts,
@@ -56,6 +57,7 @@
         this.atts = atts;
 
         if (atts.containsKey("jnlp_href")) {
+            useJNLPHref = true;
             try {
                 URL jnlp = new URL(codeBase.toExternalForm() + atts.get("jnlp_href"));
                 JNLPFile jnlpFile = new JNLPFile(jnlp, null, false, JNLPRuntime.getDefaultUpdatePolicy(), this.codeBase);
@@ -80,6 +82,7 @@
         } else {
             // Should we populate this list with applet attribute tags?
             info = new ArrayList<InformationDesc>();
+            useJNLPHref = false;
         }
 
         // also, see if cache_archive is specified
@@ -172,6 +175,10 @@
     	return codeBaseLookup;
     }
 
+    public boolean useJNLPHref() {
+        return useJNLPHref;
+    }
+
     /**
      * {@inheritdoc }
      */



More information about the distro-pkg-dev mailing list