Added new function in EntityHandler to parse and validate query string.
authorMoumita Ray <moumita.ray@intel.com>
Tue, 28 Apr 2015 21:14:54 +0000 (14:14 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 5 May 2015 18:07:49 +0000 (18:07 +0000)
commit2c5b9d1fa9fe6af0877e29e64e018908d88133a2
tree9364bc0b12b2387d8472063e06cce895080c6a9e
parent979c09ffd93c16d9b470a44a2a61331e44ef14dd
Added new function in EntityHandler to parse and validate query string.

IOT-491: When client creates a resource and calls GET  with different
resource type name and interface,GET should fail but it is successful.
Analysis: Since APP creates resource, it should know the
resource/interface types and it should check for resourceTypeName
and ResourceInterface to identify a known resource prior to handle
entity Request.

Change-Id: I9159b465bf708a4cb5835f4b3adf0aea3a2c87bb
Signed-off-by: Moumita Ray <moumita.ray@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/860
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.h
resource/examples/simpleserver.cpp