Copy PapRestServer to policy/common 67/91567/3
authorJim Hahn <jrh3@att.com>
Tue, 16 Jul 2019 20:10:25 +0000 (16:10 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 17 Jul 2019 16:27:33 +0000 (12:27 -0400)
commit3f54136a63ca29ac2401c2b22a7a66b95faebae3
treebe433da982c1b779a4ee7c2f2df0930c81b47198
parentc82cc454fe4f08da7e27af31ac9c0a0ef9cf153b
Copy PapRestServer to policy/common

Copied and renamed the class to RestServer.  Also modified it to
derive from ServiceManagerContainer.
Added getName() method to HttpServletServer, which facilitated
the refactoring.
Renamed "controllers" to "providers".

Change-Id: I905166e41063e3fe84e356fd6c4a91ca9d4cb8a6
Issue-ID: POLICY-1652
Signed-off-by: Jim Hahn <jrh3@att.com>
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/HttpServletServer.java
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/RestServer.java [new file with mode: 0644]
policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestServerTest.java [new file with mode: 0644]