FileDocCategorySizeDatePackage
OtaNotifier.javaAPI DocphoneME MR2 API (J2ME)5651Wed May 02 18:00:08 BST 2007com.sun.midp.installer

OtaNotifier

public final class OtaNotifier extends Object
This class handles sending installation and deletion notifications as specified by the OTA section of the MIDP 2.0 specification. The delete notifications are only sent when an install notification is sent. The installer will call this class to send the initial install notification, if the notification fails and is a success notification, the notification will be queued, so that the next time a MIDlet from the suite is run, that suite's notification will be retried. The MIDlet state handler will call this class to process install notification retries.

Fields Summary
static final int
RETRY_DELAY
Retry delay.
public static final String
NOTIFY_PROP
MIDlet property for the install notify URL.
public static final String
SUCCESS_MSG
Success message for the suite provider.
public static final String
INSUFFICIENT_MEM_MSG
Error message for the suite provider.
public static final String
USER_CANCELLED_MSG
Error message for the suite provider.
public static final String
JAR_SIZE_MISMATCH_MSG
Error message for the suite provider.
public static final String
ATTRIBUTE_MISMATCH_MSG
Error message for the suite provider.
public static final String
INVALID_JAD_MSG
Error message for the suite provider.
public static final String
INVALID_JAR_MSG
Error message for the suite provider.
public static final String
INCOMPATIBLE_MSG
Error message for the suite provider.
public static final String
AUTHENTICATION_FAILURE_MSG
Error message for authentication failure.
public static final String
AUTHORIZATION_FAILURE_MSG
Error message for authorization failure.
public static final String
PUSH_REG_FAILURE_MSG
Error message for push registration failure.
public static final String
DELETE_NOTIFICATION_MSG
Error message for push registration failure.
public static final String
CONTENT_HANDLER_CONFLICT
Message to send when a content handler install fails.
public static final String
INVALID_CONTENT_HANDLER
Message to send when a content handler install fails.
Constructors Summary
Methods Summary
public static voidpostInstallMsgBackToProvider(java.lang.String message, com.sun.midp.midlet.MIDletSuite suite, java.lang.String proxyUsername, java.lang.String proxyPassword)
Posts a status message back to the provider's URL in JAD. This method will also retry ALL pending delete notifications.

param
message status message to post
param
suite MIDlet suite object
param
proxyUsername if not null, it will be put in the post
param
proxyPassword if not null, it will be put in the post


                                                                
        
                  
    
public static voidpostQueuedDeleteMsgsBackToProvider(java.lang.String proxyUsername, java.lang.String proxyPassword)
Posts all queued delete notification messages

param
proxyUsername if not null, it will be put in the post
param
proxyPassword if not null, it will be put in the post

    
public static voidretryInstallNotification(com.sun.midp.security.SecurityToken token, com.sun.midp.midlet.MIDletSuite suite)
Retry the pending install status message for this suite only. This method will also retry ALL pending delete notifications, if the install notification was retried.

param
token security token of the caller
param
suite MIDlet suite object