org.jdesktop.jdnc
Class WebStartContext

java.lang.Object
  extended by org.jdesktop.jdnc.WebStartContext

public class WebStartContext
extends java.lang.Object

A class that provides the similar services to AppletContext for Java WebStarted applications.


Method Summary
 java.net.URL getDocumentBase()
          Returns the codebase URL of the application.
static WebStartContext getInstance()
           
 void showDocument(java.net.URL url, java.lang.String target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WebStartContext getInstance()

showDocument

public void showDocument(java.net.URL url,
                         java.lang.String target)

getDocumentBase

public java.net.URL getDocumentBase()
Returns the codebase URL of the application. The code base is either specified directly in the JNLP file or it's the location of the jar file containing the main class of the application.

Returns:
the url of the code base or null.


Copyright © 2005 Sun Microsystems All Rights Reserved.