public class ConfigAppPathToUrl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CUSTOM_URL_SCHEME |
static java.lang.String |
PATH_IOTIZE_SERVER |
static java.lang.String |
PATH_PREFIX_ANDROID_ASSET |
static java.lang.String |
PATH_PREFIX_CUSTOM_URL |
static java.lang.String |
PATH_PREFIX_EXTERNAL_STORAGE |
static java.lang.String |
PATH_PREFIX_INTERNAL_STORAGE |
static java.lang.String |
PATH_PREFIX_IOTIZE_SERVER |
Constructor and Description |
---|
ConfigAppPathToUrl() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
assertFileExists(java.lang.String path) |
static java.lang.String |
createFromConfigPath(java.lang.String appPathInConfig)
The syntax of the filePath is as follows:
[$0/]namedir/namefile.html : stored in root/iotize folder of the smartphone
($0/ is optional in the line above)
$1/namedir/namefile.html will be opened as http://user.cloud.iotize.com/users/namedir
|
public static final java.lang.String PATH_IOTIZE_SERVER
public static final java.lang.String DEFAULT_CUSTOM_URL_SCHEME
public static java.lang.String PATH_PREFIX_INTERNAL_STORAGE
public static java.lang.String PATH_PREFIX_IOTIZE_SERVER
public static java.lang.String PATH_PREFIX_CUSTOM_URL
public static java.lang.String PATH_PREFIX_EXTERNAL_STORAGE
public static java.lang.String PATH_PREFIX_ANDROID_ASSET
public static java.lang.String createFromConfigPath(@NonNull java.lang.String appPathInConfig) throws InvalidConfigAppException
appPathInConfig
- app path found in iotize configurationInvalidConfigAppException
- when appPathInConfig is not a valid inputpublic static java.lang.String assertFileExists(java.lang.String path) throws AppFileNotFoundException
AppFileNotFoundException