security
Class WebStartLauncher

java.lang.Object
  extended by security.WebStartLauncher

public class WebStartLauncher
extends java.lang.Object

Copyright DocJava, inc. User: lyon

Date: Feb 13, 2005

Time: 6:15:37 AM


Constructor Summary
WebStartLauncher()
           
 
Method Summary
static java.io.File getWebstartLocation()
          Search for the Java web start application.
static void main(java.lang.String[] args)
           
static void startWebStart()
          Start web start on the given url, then kill the process, to showAndRegister we have control over stopping and starting a process.
static java.io.File startWebstartAndWaitForAnswer(java.lang.String webStartUrl)
          Start web start on the given url, then kill the process, to showAndRegister we have control over stopping and starting a process.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebStartLauncher

public WebStartLauncher()
Method Detail

main

public static void main(java.lang.String[] args)

startWebStart

public static void startWebStart()
Start web start on the given url, then kill the process, to showAndRegister we have control over stopping and starting a process. You must call exit in your web start application or this code will NEVER FINISH. The Correct way to do this is to monitor a directory that contains the output and upload it after it is done writing.


startWebstartAndWaitForAnswer

public static java.io.File startWebstartAndWaitForAnswer(java.lang.String webStartUrl)
Start web start on the given url, then kill the process, to showAndRegister we have control over stopping and starting a process. You must call exit in your web start application or this code will NEVER FINISH. The Correct way to do this is to monitor a directory that contains the output and upload it after it is done writing.


getWebstartLocation

public static java.io.File getWebstartLocation()
Search for the Java web start application. If you cannot find it, prompt the user. In the future, there should be a better way to do this, but what, I don't know. And what if javaws cannot be found because it is not installed? Tricky!

Returns:
the java webstart file.