Methods Summary |
---|
public java.lang.String | getInstallURL(javax.microedition.midlet.MIDlet midlet)Check for a URL to install from the Invocation mechanism,
if one has been queued.
return null;
|
public static com.sun.midp.content.CHManager | getManager(com.sun.midp.security.SecurityToken token)Get the Content Handler manager if the system is configured
to implement content handlers. A dummy handler is returned
if content handlers are not supported.
if (token != null) {
token.checkIfPermissionAllowed(Permissions.MIDP);
} else {
MIDletSuite msuite =
MIDletStateHandler.getMidletStateHandler().getMIDletSuite();
if (msuite != null) {
msuite.checkIfPermissionAllowed(Permissions.AMS);
}
}
if (manager == null) {
try {
Class cl = Class.forName("com.sun.midp.content.CHManagerImpl");
manager = (CHManager)cl.newInstance();
} catch (Exception t) {
// No real ContentHandler manager is available, return a noop
manager = new CHManager();
}
}
return manager;
|
public void | initCleanupMonitor(com.sun.midp.main.MIDletProxyList midletProxyList)Setup to monitor for MIDlets exiting and check
for incompletely handled Invocation requests.
|
public void | install()Install the content handlers found and verified by preInstall.
Register any content handlers parsed from the JAD/Manifest
attributes.
|
public void | installDone(boolean success)Notify the invocation mechanism that the install
of the URL provided by {@link #getURLToInstall}
succeeded or failed.
|
public void | midletInit(int suiteId, java.lang.String classname)Notification that a MIDlet is about to be created.
Stub implementation used when CHAPI is not present.
|
public void | preInstall(com.sun.midp.installer.Installer installer, com.sun.midp.installer.InstallState state, com.sun.midp.midlet.MIDletSuite msuite, java.lang.String authority)Parse the ContentHandler attributes and check for errors.
- Parse attributes into set of ContentHandlers.
- If none, return
- Check for permission to install handlers
- Check each for simple invalid arguments
- Check each for MIDlet is registered
- Check each for conflicts with other application registrations
- Find any current registrations
- Merge current dynamic current registrations into set of new
- Check and resolve any conflicts between static and curr dynamic
- Retain current set and new set for registration step.
|
public void | uninstall(int suiteId)Uninstall the Content handler specific information for
the specified suiteId.
|