Class Boot

  • All Implemented Interfaces:
    java.security.PrivilegedAction<java.lang.Integer>

    public final class Boot
    extends java.lang.Object
    implements java.security.PrivilegedAction<java.lang.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 Detail

      • LOG

        private static final Logger LOG
      • name

        private static final java.lang.String name
      • version

        public static final java.lang.String version
      • nameAndVersion

        private static final java.lang.String nameAndVersion
    • Constructor Detail

      • Boot

        public Boot()
    • Method Detail

      • main

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

        public static int mainWithReturnCode​(java.lang.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 java.lang.Integer runMain​(java.lang.String[] args)
      • printHelpMessage

        private static void printHelpMessage()
      • handleAbout

        private static void handleAbout()
      • fixJnlpProtocol

        static java.lang.String fixJnlpProtocol​(java.lang.String param)
      • run

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

        private java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getExtras()
      • getJnlpFileLocationFromCommandLineArguments

        static java.lang.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.