NETCONF-509: no-input RPCs should use RestconfDocumentedException 71/68271/1
authorEvan Zeller <evanrzeller@gmail.com>
Wed, 14 Feb 2018 23:15:41 +0000 (15:15 -0800)
committerEvan Zeller <evanrzeller@gmail.com>
Wed, 14 Feb 2018 23:22:44 +0000 (15:22 -0800)
commit914a50cc793909ffa813e60f9ac6c73b0cfbb5bc
tree9a87786d10f0c0703865a982806cdf689c7b0108
parentabb05e4718e54494159fdd4486c908ad5a0f46b9
NETCONF-509: no-input RPCs should use RestconfDocumentedException

When invoked with an "input" value currently the implementation throws
IllegalStateException up to the servlet container which results in the
ugly jetty default error page and reveals stack trace information.
Provide a clear message that the invoked RPC should not take any input values.

Change-Id: Id13499b80bed9a2ea7666a3aa6d775da341055ab
Signed-off-by: Evan Zeller <evanrzeller@gmail.com>
restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfImpl.java