From: tpantelis Date: Mon, 26 May 2014 05:47:18 +0000 (-0400) Subject: Bug 1003: Restconf - remove whitespace on input X-Git-Tag: autorelease-tag-v20140601202136_82eb3f9~3^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=c3acce135d19955f72616c4c956668bb539f80f2;hp=c3acce135d19955f72616c4c956668bb539f80f2;p=controller.git Bug 1003: Restconf - remove whitespace on input JsonReader, XmlReader: - Trimmed whitespace on leaf data input AbsractRpcExecutor, BrokerRpcExecutor, MountPointRpcExecutor: - Modified to handle IllegalArgumentEx and UnsupportedOperationEx thrown from invokeRpc to throw appropriate ResconfDocumentedEx. ResconfDocumentedExeptionMapper, RestconfError, RestconfErrorTest: - I discovered that the Response.Status.NOT_IMPLEMENTED jaxrs enum is defined in the enum class that is used at compile time but isn't defined in the run time enum class provided by jersey. So I changed RestconfError.ErrorTag to store the integer status code (501) instead of the enum. Ideally compile and run time should use the same lib. - SchemaAwareRpcBroker: - Modified to throw UnsupportedOperationEx if no RPC impl is found so the restconf front-end can yield the appropriate 501 (Not Implemented) status code. Change-Id: Ibfa1dc7ff1526b6d352b9f4e6be2aae0d19ab655 Signed-off-by: tpantelis ---