aboutsummaryrefslogtreecommitdiffstats
path: root/netx
diff options
context:
space:
mode:
authorDanesh Dadachanji <[email protected]>2012-02-22 10:18:45 -0500
committerDanesh Dadachanji <[email protected]>2012-02-22 10:18:45 -0500
commit8d9561776f19856f15d3bf29a714f65fefa290c2 (patch)
tree5cd05aba31ad2f794c493aa6bc31917e575727b7 /netx
parentdfee274f4c3e1db098277f5e9c0fafc08ad215df (diff)
Add ability to check for use of jnlp_href outside of PluginBridge.
Diffstat (limited to 'netx')
-rw-r--r--netx/net/sourceforge/jnlp/PluginBridge.java7
1 files changed, 7 insertions, 0 deletions
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 }
*/