Package net.sourceforge.jnlp.runtime
Class Boot
- java.lang.Object
-
- net.sourceforge.jnlp.runtime.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 theJNLPRuntime.initialize()method after configuring the runtime.- Version:
- $Revision: 1.21 $
-
-
Field Summary
Fields Modifier and Type Field Description private static LoggerLOGprivate static java.lang.StringminiLicenseprivate static java.lang.Stringnameprivate static java.lang.StringnameAndVersionprivate static CommandLineOptionsParseroptionParserstatic java.lang.Stringversion
-
Constructor Summary
Constructors Constructor Description Boot()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.StringfixJnlpProtocol(java.lang.String param)private java.util.Map<java.lang.String,java.util.List<java.lang.String>>getExtras()(package private) static java.lang.StringgetJnlpFileLocationFromCommandLineArguments(CommandLineOptionsParser commandLineOptionsParser)Fetch the JNLP file location from command line arguments.private ParserSettingsgetParserSettings()private static voidhandleAbout()private voidlaunch(java.lang.String location)private java.net.URLlocationToUrl(java.lang.String location)static voidmain(java.lang.String[] args)Launch the JNLP file specified by the command-line arguments.static intmainWithReturnCode(java.lang.String[] args)Launch the JNLP file specified by the command-line arguments.private static voidprintHelpMessage()java.lang.Integerrun()The privileged part (jdk1.3 compatibility).private static java.lang.IntegerrunMain(java.lang.String[] args)
-
-
-
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
-
miniLicense
private static final java.lang.String miniLicense
- See Also:
- Constant Field Values
-
optionParser
private static CommandLineOptionsParser optionParser
-
-
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:
runin interfacejava.security.PrivilegedAction<java.lang.Integer>
-
launch
private void launch(java.lang.String location) throws LaunchException- Throws:
LaunchException
-
getExtras
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> getExtras()
-
getParserSettings
private ParserSettings getParserSettings()
-
locationToUrl
private java.net.URL locationToUrl(java.lang.String location) throws LaunchException- Throws:
LaunchException
-
getJnlpFileLocationFromCommandLineArguments
static java.lang.String getJnlpFileLocationFromCommandLineArguments(CommandLineOptionsParser commandLineOptionsParser)
Fetch the JNLP file location from command line arguments. If theCommandLineOptionsParsercannot parse aCommandLineOptions.JNLPit returns the first command argument.- Returns:
- the file location or null if no file location can be found in the command line arguments.
-
-