Removing hardcoded values

revert-dabc3590
GDLMadushanka 8 years ago
parent 7138ba3953
commit 16b85e8ff9

@ -202,8 +202,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;S
String deviceControllerAPIEndpoint = serverSecureEndpoint + backEndContext;
String deviceEnrollmentEndpoint =

@ -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