public final class DeviceProfileUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
createHeader(java.lang.String version)
Given a version string, fabricate a JSON device profile header specifying that version.
|
static java.lang.String |
getHeaderVersion(java.lang.String header)
Given a device profile header string, perform validation on the string.
|
public static java.lang.String createHeader(java.lang.String version)
version - the device profile header versionpublic static java.lang.String getHeaderVersion(java.lang.String header)
throws com.ionic.sdk.error.IonicException
header - a device profile header string (JSON)com.ionic.sdk.error.IonicException - on input JSON which cannot be parsed, or on invalid header type data