Methods Summary |
---|
public static boolean | checkInConnectionInternal(com.sun.midp.security.SecurityToken token, java.lang.String connection)Check in a push connection into AMS so the owning MIDlet can get
launched next time data is pushed. This method is used when a MIDlet
will not be able to get the connection and close (check in) the
connection for some reason. (normally because the user denied a
permission)
For datagram connections this function will discard the cached message.
For server socket connections this function will close the
accepted connection.
return false;
|
public static void | enablePushLaunch(boolean enable)Sets the flag which enables push launches to take place.
|
public static void | initSecurityToken(com.sun.midp.security.SecurityToken token)Initializes the security token for this class, so it can
perform actions that a normal MIDlet Suite cannot.
|
public static java.lang.String | listConnections(int id, boolean available)Return a list of registered connections for given
MIDlet suite.
return "";
|
public static void | registerConnectionInternal(com.sun.midp.midlet.MIDletSuite midletSuite, java.lang.String connection, java.lang.String midlet, java.lang.String filter, boolean bypassChecks)Register a dynamic connection with the
application management software. Once registered,
the dynamic connection acts just like a
connection preallocated from the descriptor file.
The internal implementation includes the storage name
that uniquely identifies the MIDlet .
This method bypasses the class loader specific checks
needed by the Installer .
throw new ConnectionNotFoundException("not supported");
|
public static void | setMvmSingleMidletMode()Sets the flag which indicates that the AMS is operating in MVM
single MIDlet mode.
|
public static void | startListening()Start listening for push notifications. Will throw a security
exception if called by any thing other than the MIDletSuiteLoader.
|
public static void | unregisterConnections(int id)Unregister all the connections for a MIDlet suite.
|