netx.jnlp
Interface LaunchHandler

All Known Implementing Classes:
Start

public interface LaunchHandler

This optional interface is used to handle conditions that occur while launching JNLP applications, applets, and installers.

Version:
$Revision: 1.7 $
Author:
Jon A. Maxwell (JAM) - initial author

Method Summary
 void launchCompleted(ApplicationInstance application)
          Called when an application, applet, or installer has been launched successfully (the main method or applet start method returned normally).
 void launchError(LaunchException exception)
          Called when the application could not be launched due to a fatal error, such as the inability to find the main class or non-parseable XML.
 boolean launchWarning(LaunchException warning)
          Called when launching the application can not be launched due to an error that is not fatal.
 boolean validationError(LaunchException invalidSecurity)
          Called when a security validation error occurs while launching the application.
 

Method Detail

launchError

public void launchError(LaunchException exception)
Called when the application could not be launched due to a fatal error, such as the inability to find the main class or non-parseable XML.

launchWarning

public boolean launchWarning(LaunchException warning)
Called when launching the application can not be launched due to an error that is not fatal. For example a JNLP file that is not strictly correct yet does not necessarily prohibit the system from attempting to launch the application.
Returns:
true if the launch should continue, false to abort

validationError

public boolean validationError(LaunchException invalidSecurity)
Called when a security validation error occurs while launching the application.
Returns:
true to allow the application to continue, false to stop it.

launchCompleted

public void launchCompleted(ApplicationInstance application)
Called when an application, applet, or installer has been launched successfully (the main method or applet start method returned normally).
Parameters:
application - the launched application instance