diff options
author | Danesh Dadachanji <[email protected]> | 2012-02-22 10:18:45 -0500 |
---|---|---|
committer | Danesh Dadachanji <[email protected]> | 2012-02-22 10:18:45 -0500 |
commit | 8d9561776f19856f15d3bf29a714f65fefa290c2 (patch) | |
tree | 5cd05aba31ad2f794c493aa6bc31917e575727b7 | |
parent | dfee274f4c3e1db098277f5e9c0fafc08ad215df (diff) |
Add ability to check for use of jnlp_href outside of PluginBridge.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/PluginBridge.java | 7 |
2 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2012-02-22 Danesh Dadachanji <[email protected]> + + 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 <[email protected]> Fix path to NEW_LINE_IFS for when one builds outside of src directory. diff --git a/netx/net/sourceforge/jnlp/PluginBridge.java b/netx/net/sourceforge/jnlp/PluginBridge.java index 14cb6bc..2146e64 100644 --- a/netx/net/sourceforge/jnlp/PluginBridge.java +++ b/netx/net/sourceforge/jnlp/PluginBridge.java @@ -44,6 +44,7 @@ public class PluginBridge extends JNLPFile { 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 @@ public class PluginBridge extends JNLPFile { 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 @@ public class PluginBridge extends JNLPFile { } 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 @@ public class PluginBridge extends JNLPFile { return codeBaseLookup; } + public boolean useJNLPHref() { + return useJNLPHref; + } + /** * {@inheritdoc } */ |