Mercurial > hg > release > icedtea-web-1.2
changeset 331:c9a253d0952b
Add ability to check for use of jnlp_href outside of PluginBridge.
author | Danesh Dadachanji <ddadacha@redhat.com> |
---|---|
date | Wed, 22 Feb 2012 10:18:45 -0500 |
parents | c959afd1eba7 |
children | a25e0ec36020 |
files | ChangeLog netx/net/sourceforge/jnlp/PluginBridge.java |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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@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@redhat.com> Fix path to NEW_LINE_IFS for when one builds outside of src directory.
--- 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 } */