Add local MultivaluedHashMap implementation 53/63053/3
authorTom Pantelis <tompantelis@gmail.com>
Tue, 12 Sep 2017 16:03:00 +0000 (12:03 -0400)
committerTom Pantelis <tompantelis@gmail.com>
Wed, 27 Sep 2017 04:19:49 +0000 (00:19 -0400)
commit136b86fefb2a79a89fa37ee4fd8eeb47e41c34ba
tree5a9608ba5ee81e5308de7db2609b077244b50a3f
parent383ff321e0ae4dcfc45a6dc682ede45f49232d9e
Add local MultivaluedHashMap implementation

The JSONRestconfService implementation contains a local UriInfo
implementation, SimpleUriInfo, that uses a MultivaluedHashMap
implementation from javax.ws.rs.core. This class is provided by
the dependency used at compile time however, the runtime bundle
that provides the javax.ws.rs.core interfaces doesn't provide
MultivaluedHashMap. Therefore I added our own local MultivaluedHashMap
class based on the external class. I also refactored SimpleUriInfo into
it's own class as it's used by both JSONRestconfService implementations.

Change-Id: I1af0771327d46c72e55facf14c41038fd583e0ed
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/util/MultivaluedHashMap.java [new file with mode: 0644]
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/util/SimpleUriInfo.java [new file with mode: 0644]
restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/restconf/impl/JSONRestconfServiceImpl.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/JSONRestconfServiceRfc8040Impl.java