public class AgentUtilOperations extends Object
Constructor and Description |
---|
AgentUtilOperations() |
Modifier and Type | Method and Description |
---|---|
static String |
extractMessageFromPayload(String message) |
static String |
formatMessage(String message) |
static void |
initializeServerEndPoints()
This method constructs the URLs for each of the API Endpoints called by the device agent
Ex: Register API, Push-Data API
|
static String |
prepareSecurePayLoad(String message) |
static AgentConfiguration |
readIoTServerConfigs()
This method reads the agent specific configurations for the device from the
"deviceConfigs.properties" file found at /repository/conf folder.
|
static boolean |
writeToFile(String content,
String fileLocation) |
public static AgentConfiguration readIoTServerConfigs()
public static void initializeServerEndPoints()
AgentCoreOperationException
- if any error occurs at socket level whilst trying to
retrieve the deviceIP of the network-interface read
from the configs filepublic static String prepareSecurePayLoad(String message) throws AgentCoreOperationException
AgentCoreOperationException
public static String extractMessageFromPayload(String message) throws AgentCoreOperationException
AgentCoreOperationException
Copyright © 2017 WSO2. All rights reserved.