| java.lang.Object com.sun.midp.io.j2me.push.PushRegistryInternal
PushRegistryInternal | final public class PushRegistryInternal (Code) | | Stubbed implementation for NAMS variant of CLDC stack
|
Field Summary | |
final public static int | PUSH_OPT_WHEN_ONLY_APP Push option to only launch this suite when not other applications
are running. |
PUSH_OPT_WHEN_ONLY_APP | final public static int PUSH_OPT_WHEN_ONLY_APP(Code) | | Push option to only launch this suite when not other applications
are running.
|
checkInConnectionInternal | public static boolean checkInConnectionInternal(SecurityToken token, String connection)(Code) | | 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.
Parameters: token - security token of the calling class Parameters: connection - generic connection protocol, hostand port number(optional parameters may be includedseparated with semi-colons (;)) exception: IllegalArgumentException - if the connection string is notvalid exception: SecurityException - if the MIDlet does nothave permission to clear a connection true if the check in was successful,false the connection was not registered. See Also: PushRegistryInternal.unregisterConnection |
enablePushLaunch | public static void enablePushLaunch(boolean enable)(Code) | | Sets the flag which enables push launches to take place.
Parameters: enable - set to true to enable launchingof MIDlets based on alarms and connection notificationevents, otherwise set to false to disablelaunches |
initSecurityToken | public static void initSecurityToken(SecurityToken token)(Code) | | Initializes the security token for this class, so it can
perform actions that a normal MIDlet Suite cannot.
Parameters: token - security token for this class. |
listConnections | public static String listConnections(int id, boolean available)(Code) | | Return a list of registered connections for given
MIDlet suite.
Parameters: id - identifies the specific MIDlet suite to be launched Parameters: available - if true , only return the list ofconnections with input available string representing an array of connection strings,where each connection is represented by the generic connectionprotocol, host and port numberidentification |
registerConnectionInternal | public static void registerConnectionInternal(MIDletSuite midletSuite, String connection, String midlet, String filter, boolean bypassChecks) throws ClassNotFoundException, IOException(Code) | | 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 .
Parameters: midletSuite - MIDlet suite for the suite registering,the suite only has to implement isRegistered,checkForPermission, and getID. Parameters: connection - generic connection protocol, hostand port number(optional parameters may be includedseparated with semi-colons (;)) Parameters: midlet - class name of the MIDlet to be launched,when new external data is available Parameters: filter - a connection URL string indicating which sendersare allowed to cause the MIDlet to be launched Parameters: bypassChecks - if true, bypass the permission checks,used by the installer when redo old connections during anaborted update exception: IllegalArgumentException - if the connection string is notvalid exception: ConnectionNotFoundException - if the runtime system does notsupport push delivery for the requestedconnection protocol exception: IOException - if the connection is alreadyregistered or if there are insufficient resourcesto handle the registration request exception: ClassNotFoundException - if the MIDlet classname can not be found in the currentMIDlet suite exception: SecurityException - if the MIDlet does nothave permission to register a connection See Also: PushRegistryInternal.unregisterConnection |
setMvmSingleMidletMode | public static void setMvmSingleMidletMode()(Code) | | Sets the flag which indicates that the AMS is operating in MVM
single MIDlet mode.
|
startListening | public static void startListening()(Code) | | Start listening for push notifications. Will throw a security
exception if called by any thing other than the MIDletSuiteLoader.
|
unregisterConnections | public static void unregisterConnections(int id)(Code) | | Unregister all the connections for a MIDlet suite.
Parameters: id - identifies the specific MIDlet suite |
|
|