Class Boot

java.lang.Object
net.sourceforge.jnlp.runtime.Boot
All Implemented Interfaces:
PrivilegedAction<Integer>

public final class Boot extends Object implements PrivilegedAction<Integer>
This is the main entry point for the JNLP client. The main method parses the command line parameters and loads a JNLP file into the secure runtime environment. This class is meant to be called from the command line or file association; to initialize the netx engine from other code invoke the JNLPRuntime.initialize() method after configuring the runtime.
Version:
$Revision: 1.21 $
  • Field Details

  • Constructor Details

    • Boot

      public Boot()
  • Method Details

    • main

      public static void main(String[] args)
      Launch the JNLP file specified by the command-line arguments.
      Parameters:
      args - launching arguments
    • mainWithReturnCode

      public static int mainWithReturnCode(String[] args)
      Launch the JNLP file specified by the command-line arguments. This method is only public for integration testing. You should not call this method !!
      Parameters:
      args - launching arguments
      Returns:
      the return code. 0 = SUCCESS anything else is an error
    • runMain

      private static Integer runMain(String[] args)
    • printHelpMessage

      private static void printHelpMessage()
    • handleAbout

      private static void handleAbout()
    • fixJnlpProtocol

      static String fixJnlpProtocol(String param)
    • run

      public Integer run()
      The privileged part (jdk1.3 compatibility).
      Specified by:
      run in interface PrivilegedAction<Integer>
    • launch

      private void launch(String location) throws LaunchException
      Throws:
      LaunchException
    • getExtras

      private Map<String, List<String>> getExtras()
    • getParserSettings

      private ParserSettings getParserSettings()
    • locationToUrl

      private URL locationToUrl(String location) throws LaunchException
      Throws:
      LaunchException
    • getJnlpFileLocationFromCommandLineArguments

      static String getJnlpFileLocationFromCommandLineArguments(CommandLineOptionsParser commandLineOptionsParser)
      Fetch the JNLP file location from command line arguments. If the CommandLineOptionsParser cannot parse a CommandLineOptions.JNLP it returns the first command argument.
      Returns:
      the file location or null if no file location can be found in the command line arguments.