Removing hardcoded values

bump-core-version
GDLMadushanka 8 years ago
parent ebe19b959d
commit 2f4390334a

@ -27,6 +27,8 @@ public class AgentConstants {
/* ---------------------------------------------------------------------------------------
IoT-Server specific information
--------------------------------------------------------------------------------------- */
public static final String DEVICE_CONTROLLER_API_EP = "/virtual_firealarm/device";
public static final String DEVICE_SCEP_API_EP = "/virtual_firealarm_scep";
public static final String DEVICE_ENROLLMENT_API_EP = "/scep";
public static final String DEVICE_REGISTER_API_EP = "/register";
public static final String DEVICE_PUSH_TEMPERATURE_API_EP = "/temperature";

@ -193,8 +193,8 @@ public class AgentUtilOperations {
AgentManager agentManager = AgentManager.getInstance();
String serverSecureEndpoint = agentManager.getAgentConfigs().getHTTPS_ServerEndpoint();
String serverUnSecureEndpoint = agentManager.getAgentConfigs().getHTTP_ServerEndpoint();
String backEndContext = "/virtual_firealarm/device";
String scepBackEndContext = "/virtual_firealarm_scep";
String backEndContext =AgentConstants.DEVICE_CONTROLLER_API_EP;
String scepBackEndContext = AgentConstants.DEVICE_SCEP_API_EP;
String deviceControllerAPIEndpoint = serverSecureEndpoint + backEndContext;

Loading…
Cancel
Save