edu.northwestern.at.utils.sys
Class WebStart

java.lang.Object
  extended by edu.northwestern.at.utils.sys.WebStart

public class WebStart
extends java.lang.Object

Web Start Manager.

This static class manages the interface to the Web Start / JNLP API, and provides some similar services when the JNLP environment is not available.


Method Summary
static java.lang.Object getMuffin(java.lang.String key)
          Gets a muffin.
static void putMuffin(java.lang.String key, java.lang.Object obj)
          Puts a muffin.
static void setCodebase(java.lang.String codebase)
          Sets the codebase.
static void showDocument(java.lang.String urlStr)
          Directs a browser to show a URL.
static void showDocument(java.net.URL url)
          Directs a browser to show a URL.
static void showRelativeDocument(java.lang.String relUrlStr)
          Directs a browser to show a page relative to the codebase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setCodebase

public static void setCodebase(java.lang.String codebase)
Sets the codebase.

If we are running in a JNLP environment this method does nothing - in that case the codebase is obtained from the JNLP basic services.

Parameters:
codebase - The codebase.

getMuffin

public static java.lang.Object getMuffin(java.lang.String key)
Gets a muffin.

Parameters:
key - Muffin key.
Returns:
Muffin value, or null if we are not running in a JNLP environment.

putMuffin

public static void putMuffin(java.lang.String key,
                             java.lang.Object obj)
Puts a muffin.

Does nothing if we are not running in a JNLP environment.

Parameters:
key - Muffin key.
obj - Muffin value.

showDocument

public static void showDocument(java.net.URL url)
Directs a browser to show a URL.

If we are not running in a JNLP environment, we use alternate techniques on Mac OS X and on Windows.

Parameters:
url - The URL.

showDocument

public static void showDocument(java.lang.String urlStr)
Directs a browser to show a URL.

If we are not running in a JNLP environment, we use alternate techniques on Mac OS X and on Windows.

Parameters:
urlStr - The URL string.

showRelativeDocument

public static void showRelativeDocument(java.lang.String relUrlStr)
Directs a browser to show a page relative to the codebase.

If we are not running in a JNLP environment, we use alternate techniques on Mac OS X and on Windows.

Parameters:
relUrlStr - Relative URL string (relative to the codebase).