51 std::mutex X_rdk_profile::m;
62 }
catch(
const std::exception& e)
64 RDK_LOG(RDK_LOG_WARN,LOG_TR69HOSTIF,
"[%s:%d] X_rdk_profile: Caught exception \" %s\"\n", __FUNCTION__, __LINE__, e.what());
71 void X_rdk_profile::closeInstance()
85 m_bsStore = XBSStore::getInstance();
100 const char* paramName = NULL;
102 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Entering... \n", __FUNCTION__, __LINE__);
108 if(NULL == paramName) {
109 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Failed : Parameter is NULL.\n", __FUNCTION__, __LINE__);
112 if (strncasecmp(paramName, X_RDK_WebPA_DNSText_URL_STRING, strlen(X_RDK_WebPA_DNSText_URL_STRING)) == 0)
114 return set_WebPA_DNSText_URL(stMsgData);
118 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Parameter \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, paramName);
119 stMsgData->
faultCode = fcInvalidParameterName;
123 catch (
const std::exception& e )
125 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Exception caught %s \n", __FUNCTION__, __LINE__, e.what());
130 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Exiting..\n", __FUNCTION__, __LINE__);
149 int ret = NOT_HANDLED;
150 const char* paramName = NULL;
152 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Entering... \n", __FUNCTION__, __LINE__);
158 if(NULL == paramName) {
159 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Failed : Parameter is NULL.\n", __FUNCTION__, __LINE__);
163 if (strncasecmp(paramName, X_RDK_WebPA_SERVER_URL_STPRING, strlen(X_RDK_WebPA_SERVER_URL_STPRING)) == 0)
165 ret = get_WebPA_Server_URL(stMsgData);
167 else if (strncasecmp(paramName, X_RDK_WebPA_TokenServer_URL_STRING, strlen(X_RDK_WebPA_TokenServer_URL_STRING)) == 0)
169 ret = get_WebPA_TokenServer_URL(stMsgData);
171 else if (strncasecmp(paramName, X_RDK_WebPA_DNSText_URL_STRING, strlen(X_RDK_WebPA_DNSText_URL_STRING)) == 0)
173 ret = get_WebPA_DNSText_URL(stMsgData);
177 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Parameter \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, paramName);
178 stMsgData->
faultCode = fcInvalidParameterName;
182 catch (
const std::exception& e )
184 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Exception caught %s \n", __FUNCTION__, __LINE__, e.what());
188 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d]X_rdk_profile: Exiting..\n", __FUNCTION__, __LINE__);
207 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d]Entering..\n", __FUNCTION__, __LINE__);
210 m_bsStore->getValue(stMsgData);
211 }
catch (
const std::exception& e) {
212 RDK_LOG(RDK_LOG_WARN,LOG_TR69HOSTIF,
"[%s:%d] Exception : %s\r\n",__FUNCTION__, __LINE__, e.what());
216 RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,
"[%s:%d] The param name [ %s ], and value [ %s ] \r\n",__FUNCTION__, __LINE__,
218 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d] Exiting..\n", __FUNCTION__, __LINE__);
236 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d]Entering..\n", __FUNCTION__, __LINE__);
239 m_bsStore->getValue(stMsgData);
240 }
catch (
const std::exception& e) {
241 RDK_LOG(RDK_LOG_WARN,LOG_TR69HOSTIF,
"[%s:%d]Exception : %s\r\n",__FUNCTION__, __LINE__, e.what());
245 RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,
"[%s:%d] The param name [ %s ], and value [ %s ] \r\n",__FUNCTION__, __LINE__,
248 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d] Exiting..\n", __FUNCTION__, __LINE__);
265 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d]Entering..\n", __FUNCTION__, __LINE__);
268 m_bsStore->getValue(stMsgData);
269 }
catch (
const std::exception& e) {
270 RDK_LOG(RDK_LOG_WARN,LOG_TR69HOSTIF,
"[%s:%d] Exception : %s\r\n",__FUNCTION__, __LINE__, e.what());
274 RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,
"[%s:%d] The param name [ %s ], and value [ %s ] \r\n",__FUNCTION__, __LINE__,
277 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%d] Exiting..\n", __FUNCTION__, __LINE__);
284 m_bsStore->overrideValue(stMsgData);
285 RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,
"[%s:%d] The [ %s ] Set Successfully value as [ %s ]. \n",__FUNCTION__, __LINE__,