BUG-1442: integrate XML/JSON Normalized Node writers with Restconf Integrated XML and JSON NormalizedNodeWriters for returning data from Restconf. This writers does stream processing and writes data into input stream without any intermediate representations. This will help with larger data sets, since it theoretically reduces memory footprint of reading data from MD-SAL. Change-Id: I36564b7a5a1bc50d60e1cb6d5b2b45f92c2caf0b Signed-off-by: Jozef Gloncak <jgloncak@cisco.com> Signed-off-by: Robert Varga <rovarga@cisco.com>
BUG 1082 Migrate sal-rest-connector to Async Data Broker API Rework of sal-rest-connector project to support Async Data Broker API Change-Id: I73804418a04445b236d12693e493a11850dd94dd Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
BUG-1092: adjust to YangInstanceIdentifier This is a compation to I1e30a0df93d8bfb891d047c58abcb117d4006c76, adjusting the components to use the new name. Change-Id: I615763240581e850f7752f82e44d752c8fceb169 Signed-off-by: Robert Varga <rovarga@cisco.com>
Apply style rules on whole sal-rest-connector No changes in function of code, just formatting. Change-Id: I52bf10a3b84fa61ec35c31145acbbc6b9bf349ec Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Bulk-add copyright headers to java files Change-Id: I8c23739a21f3f6cecb138f62a54efbabf03b9c55 Signed-off-by: Robert Varga <rovarga@cisco.com>
Changed mount point URI decoding in restconf - string "yang-ext:mount" in URI means mount point. After this string must be string in format moduleName:dataNode example: /rectconf/config/moduleName1:cont1/cont2/yang-ext:mount/moduleName2:cont3/cont4 mount point path - moduleName1:cont1/cont2/ path behind mount point - moduleName2:cont3/cont4 - refactoring of POST, PUT, GET, DELETE tests for status codes - test for output of several modules to one xml and json file were added Change-Id: I79bfaec1fab6ffd89295fb8461c167c0c85638ae Signed-off-by: Martin Sunal <msunal@cisco.com> Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Changed POST operation POST operation for creating resource was changed according to RFC http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-3.4 - test fix - ResponseException tests Change-Id: Icca28a4a57499be5f29a1b618a432dd61dde2816 Signed-off-by: Martin Sunal <msunal@cisco.com> Signed-off-by: Jozef Gloncak <jgloncak@cisco.com> Signed-off-by: Ladislav Borak <lborak@cisco.com>
Solved bugs and added tests in sal-rest-connector - solved bugs in ControllerContext - added tests - formatting Change-Id: Ia552ec3aa6a8e4949aedfc01f8386dbc6875a73f Signed-off-by: Martin Sunal <msunal@cisco.com>
Adding resources for a testing - added xml, yang, json resources for a testing - created JsonMapper class - there will be conversion to json based on yang schema Change-Id: I71b13018f9e9e1ed20279f79a0a6e07a0ecef89a Signed-off-by: Martin Sunal <msunal@cisco.com>