com.worklight.androidgap.api
Class WLInitWebFrameworkResult
- java.lang.Object
-
- com.worklight.androidgap.api.WLInitWebFrameworkResult
-
public class WLInitWebFrameworkResult extends java.lang.ObjectDescribes the outcome of IBM MobileFirst Platform initialization process. There are several codes for the status of the initialization: SUCCESS - The web framework initialization completed successfully. FAILURE_INTERNAL - There was an internal unspecified error. FAILURE_UNZIP - IBM MobileFirst Platform failed to unzip the web resources. FAILURE_CHECKSUM - There was a problem with the completeness of the web resources. FAILURE_NOT_ENOUGH_SPACE - There wasn't enough space on the device for extracting the web resources, the required space (in bytes) can be obtained usingWLInitWebFrameworkResult.getData().get("spaceRequired").
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringDATA_SPACE_REQUIREDstatic intFAILURE_CHECKSUMstatic intFAILURE_INTERNALstatic intFAILURE_NOT_ENOUGH_SPACEstatic intFAILURE_UNZIPstatic intSUCCESS
-
Constructor Summary
Constructors Constructor and Description WLInitWebFrameworkResult(int code, java.lang.String message)WLInitWebFrameworkResult(int code, java.lang.String message, java.util.Map data)
-
Method Summary
Methods Modifier and Type Method and Description java.util.MapgetData()java.lang.StringgetMessage()intgetStatusCode()SUCCESS - The web framework initialization completed successfully.
-
-
-
Field Detail
-
SUCCESS
public static int SUCCESS
-
FAILURE_INTERNAL
public static int FAILURE_INTERNAL
-
FAILURE_UNZIP
public static int FAILURE_UNZIP
-
FAILURE_CHECKSUM
public static int FAILURE_CHECKSUM
-
FAILURE_NOT_ENOUGH_SPACE
public static int FAILURE_NOT_ENOUGH_SPACE
-
DATA_SPACE_REQUIRED
public static java.lang.String DATA_SPACE_REQUIRED
-
-
Constructor Detail
-
WLInitWebFrameworkResult
public WLInitWebFrameworkResult(int code, java.lang.String message)
-
WLInitWebFrameworkResult
public WLInitWebFrameworkResult(int code, java.lang.String message, java.util.Map data)
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
SUCCESS - The web framework initialization completed successfully. FAILURE_INTERNAL - There was an internal unspecified error. FAILURE_UNZIP - IBM MobileFirst Platform failed to unzip the web resources. FAILURE_CHECKSUM - There was a problem with the completeness of the web resources. FAILURE_NOT_ENOUGH_SPACE - There wasn't enough space on the device for extracting the web resources, the required space (in bytes) can be obtained usingWLInitWebFrameworkResult.getData().get("spaceRequired").- Returns:
- The status of the initialization.
-
getMessage
public java.lang.String getMessage()
- Returns:
- The default error message according to the status of the initialization.
-
getData
public java.util.Map getData()
- Returns:
- Returns a map of extra data on the result of initialization, i.e. spaceRequired
-
-