| java.lang.Object javax.microedition.midlet.MIDlet com.sun.midp.scriptutil.CommandLineInstaller
CommandLineInstaller | public class CommandLineInstaller extends MIDlet implements InstallListener,Runnable(Code) | | A command-line installer. Allows to install midlet either from
an http(s):// or from a file:// URL.
The MIDlet uses certain application properties as arguments:
- arg-0: currently must be "I" == install
(for consistency with GraphicalInstaller)
- arg-1: URL of the midlet suite to install
- arg-2: a storage ID where to save the suite's jar file
|
Method Summary | |
public boolean | confirmAuthPath(InstallState state) Called with the current state of the install so the user can be
asked to confirm the authentication path.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. | public boolean | confirmJarDownload(InstallState state) Called with the current state of the install so the user can be
asked to confirm the jar download.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. | public void | destroyApp(boolean unconditional) Destroy cleans up. | public boolean | keepRMS(InstallState state) Called with the current state of the install so the user can be
asked to confirm if the RMS data should be kept for new version of
an updated suite.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. | public void | pauseApp() Pause; there are no resources that need to be released. | public void | run() Installs a new MIDlet suite. | public void | startApp() Start. | public void | updateStatus(int status, InstallState state) Called with the current status of the install. | public boolean | warnUser(InstallState state) Called with the current state of the install so the user can be
asked to override the warning. |
CommandLineInstaller | public CommandLineInstaller()(Code) | | Create and initialize the MIDlet.
|
confirmAuthPath | public boolean confirmAuthPath(InstallState state)(Code) | | Called with the current state of the install so the user can be
asked to confirm the authentication path.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. true if the user wants to continue, false to stop the install |
confirmJarDownload | public boolean confirmJarDownload(InstallState state)(Code) | | Called with the current state of the install so the user can be
asked to confirm the jar download.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. true if the user wants to continue, false to stop the install |
destroyApp | public void destroyApp(boolean unconditional)(Code) | | Destroy cleans up.
Parameters: unconditional - is ignored; this object alwaysdestroys itself when requested. |
keepRMS | public boolean keepRMS(InstallState state)(Code) | | Called with the current state of the install so the user can be
asked to confirm if the RMS data should be kept for new version of
an updated suite.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. true if the user wants to keep the RMS data for the next suite |
pauseApp | public void pauseApp()(Code) | | Pause; there are no resources that need to be released.
|
run | public void run()(Code) | | Installs a new MIDlet suite.
|
startApp | public void startApp()(Code) | | Start.
|
updateStatus | public void updateStatus(int status, InstallState state)(Code) | | Called with the current status of the install. See
Installer for the status codes.
Parameters: status - current status of the install. Parameters: state - current state of the install. |
warnUser | public boolean warnUser(InstallState state)(Code) | | Called with the current state of the install so the user can be
asked to override the warning. To get the warning from the state
call
InstallState.getLastException . If false is returned,
the last exception in the state will be thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. true if the user wants to continue, false to stop the install |
|
|