Delete restconf Change-Id: I0cc4ea8375ec22b67ee93e1a02a9131f56f044c2 Signed-off-by: Tomas Cere <tcere@cisco.com>
Quickfix: Remove deprecated providers from Restconf Application Jersey 1.17 has problem with multiple Entity providers, which consumes same content-type and produces different Entity class. In wiring phase it does not report any problems, but in runtime it may select incorrect one, which will result in IllegalArgumentException, which is not reported. So in order to unblock most of functionality, legacy providers are disabled. This will fix data-store access, but without subsequent patches RPCs are not usable. Change-Id: I860e162232d887d13629504421076495a50a075b Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
Bug 2365: YIN Schema download support for Restconf Implementation of Restconf 03 Draft Schema download functionality with additional support for downloading runtime-generated YIN schema and mount points. Introduced new endpoints which are: /restconf/modules/module/{module}/{revision}/schema and /restconf/modules/module/{mount}/{module}/{revision}/schema For downloading supplied YANG module in YIN format (default) or YANG format if Accept header contains application/yang mime-type. depends on: yangtools - https://git.opendaylight.org/gerrit/#/c/15258/ patch set 3: * SchemaExportContentYniBodyWriter : fix reference YinUtils to YinExportUtils * create RestconfValidationUtils + move validation from SchemaRetrievalServiceImpl * pom.xml - add private package org.opendaylight.controller.md.sal.rest.common Change-Id: Ibd2956472ad35d13cb65e305df377f98518b4738 Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
Bug 222: Added basic Restconf operational statistics Added basic restconf statistics which counts incoming requests and exported it via Config subsystem. Export via config subsystem provides this statistics via JMX and Netconf. In distribution, where sal-netconf-connector is present and 99-sal-netconf-connector.xml is enabled, Restconf statistics are also available via restconf/operational/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules/module/rest-connector-default-impl Change-Id: Ibd0fb6875104d1a90eeaf62271c9a2f87d2f85f0 Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
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>
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>
Bug 1010: Implement restconf error responses - RestconfError (new): encapsulates error information as defined in the RESTCON RFC. - RestconfDocumentedException (new): exception that wraps RestconError info. - RestconfDocumentedExceptionMapper (new): JAX-RS ExceptionMapper that translates a RestconfDocumentedException appropriately to XML or JSON depending on the user's mime type. - JsonMapper: modified to handle null child schema as restconf error-info is defined as 'anyxml' and thus no schema may be present. - ControllerContext: added getRestconfModuleErrorsSchemaNode method to obtain the 'errors' container schema from the ietf-restconf module. - Removed ResponseException and changed occurrences in various classes that threw ResponseException to throw RestconfDocumentedException instead. - Added unit tests for new classes and modified existing ones accordingly. Change-Id: Idbe6f6cae9b40ba14701ee05dfadfdd51e961c6b Signed-off-by: tpantelis <tpanteli@brocade.com>
Bulk-add copyright headers to java files Change-Id: I8c23739a21f3f6cecb138f62a54efbabf03b9c55 Signed-off-by: Robert Varga <rovarga@cisco.com>
fix of Bug 149 - added missing providers Change-Id: I2024ddc371b8e079e770c8e7700c9124ddb411b0 Signed-off-by: Martin Sunal <msunal@cisco.com>
Added serializer/deserializer for JSON/XML - exceptions are translated to rest call response with state code 400 or 500 - imporoved singleton pattern - tests - added providers for serialization/deserialization of JSON/XML - supported rest methods: readData, invokeRpc Change-Id: I3a888fc1ad9c0ae2364d050e5c67875f9e075337 Signed-off-by: Tony Tkacik <ttkacik@cisco.com> Signed-off-by: Martin Sunal <msunal@cisco.com>