Create StandardYamlCoder 80/95280/5
authorJim Hahn <jrh3@att.com>
Mon, 9 Sep 2019 20:51:32 +0000 (16:51 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 11 Sep 2019 19:32:01 +0000 (15:32 -0400)
commit173c4dbea9a1175a6f18031a221bb701deeecaa7
treecff8d6fc46b6096b551b075e489b406c50b61531
parent216b2beaf25eba50e948374d07e92b6c0a02b7c9
Create StandardYamlCoder

Created StandardYamlCoder which is like a StandardCoder, except that
the original converts to/from JSON, while the new class converts to/from
YAML.  Also added YamlMessageBodyHandler and incorporated it into the
http server so that it supports a media type of */yaml.

Change-Id: Ibd83a9f6d355a330f63e435f2bb41affcf1947c2
Issue-ID: POLICY-2065
Signed-off-by: Jim Hahn <jrh3@att.com>
14 files changed:
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/RestServer.java
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/YamlMessageBodyHandler.java [new file with mode: 0644]
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/HttpServerTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/MyYamlProvider.java [new file with mode: 0644]
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoService.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestServerTest.java
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/YamlMessageBodyHandlerTest.java [new file with mode: 0644]
utils/pom.xml
utils/src/main/java/org/onap/policy/common/utils/coder/StandardCoder.java
utils/src/main/java/org/onap/policy/common/utils/coder/StandardYamlCoder.java [new file with mode: 0644]
utils/src/main/java/org/onap/policy/common/utils/coder/YamlException.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/coder/StandardYamlCoderTest.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/coder/YamlExceptionTest.java [new file with mode: 0644]
utils/src/test/resources/org/onap/policy/common/utils/coder/StandardYamlCoder.yaml [new file with mode: 0644]