aboutsummaryrefslogtreecommitdiffstats
path: root/cos/cosmgr
diff options
context:
space:
mode:
authorMufaddal Makati <mmakati@mmakatimbpr15.cablelabs.com>2015-08-07 13:09:49 -0700
committerMufaddal Makati <mmakati@mmakatimbpr15.cablelabs.com>2015-08-07 13:09:49 -0700
commited73dbf357aff41edcbab401a94e5fbc266d9391 (patch)
treee3561a9290e4bd0de19704228867ec91910e68ed /cos/cosmgr
parentf44f4aa8b5eb244fc7603c17e875eebf0f3b0b67 (diff)
First Commit
Diffstat (limited to 'cos/cosmgr')
-rw-r--r--cos/cosmgr/pom.xml29
-rw-r--r--cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.java25
-rw-r--r--cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.java18
-rw-r--r--cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CoSService.java130
-rw-r--r--cos/cosmgr/src/main/webapp/WEB-INF/web.xml24
-rw-r--r--cos/cosmgr/src/main/webapp/index.jsp8
-rw-r--r--cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.classbin0 -> 1384 bytes
-rw-r--r--cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.classbin0 -> 689 bytes
-rw-r--r--cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService$1.classbin0 -> 905 bytes
-rw-r--r--cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService.classbin0 -> 3955 bytes
-rw-r--r--cos/cosmgr/target/cosmgr.warbin0 -> 9806641 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.classbin0 -> 1384 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.classbin0 -> 689 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService$1.classbin0 -> 905 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService.classbin0 -> 3955 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/asm-all-repackaged-2.2.0-b14.jarbin0 -> 320127 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/cglib-2.2.0-b14.jarbin0 -> 282815 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/common-1.0-SNAPSHOT.jarbin0 -> 2690 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/cosbase-1.0-SNAPSHOT.jarbin0 -> 9554 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/guava-14.0.1.jarbin0 -> 2189117 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-api-2.2.0-b14.jarbin0 -> 126233 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-locator-2.2.0-b14.jarbin0 -> 133345 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-utils-2.2.0-b14.jarbin0 -> 53381 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.annotation-api-1.2.jarbin0 -> 26366 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.inject-2.2.0-b14.jarbin0 -> 5987 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.ws.rs-api-2.0.jarbin0 -> 112758 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-client-2.2.jarbin0 -> 117090 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-common-2.2.jarbin0 -> 600514 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-container-servlet-core-2.2.jarbin0 -> 52819 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-media-moxy-2.2.jarbin0 -> 15591 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-server-2.2.jarbin0 -> 801094 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.antlr-2.5.0.jarbin0 -> 189645 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.asm-2.5.0.jarbin0 -> 271208 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.core-2.5.0.jarbin0 -> 4977121 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.moxy-2.5.0.jarbin0 -> 488045 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/osgi-resource-locator-1.0.1.jarbin0 -> 20235 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/lib/validation-api-1.1.0.Final.jarbin0 -> 63777 bytes
-rw-r--r--cos/cosmgr/target/cosmgr/WEB-INF/web.xml24
-rw-r--r--cos/cosmgr/target/cosmgr/index.jsp8
-rw-r--r--cos/cosmgr/target/maven-archiver/pom.properties5
40 files changed, 271 insertions, 0 deletions
diff --git a/cos/cosmgr/pom.xml b/cos/cosmgr/pom.xml
new file mode 100644
index 0000000..9245481
--- /dev/null
+++ b/cos/cosmgr/pom.xml
@@ -0,0 +1,29 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <groupId>com.cablelabs.vcpe</groupId>
+ <artifactId>cos</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>com.cablelabs.vcpe</groupId>
+ <artifactId>cosmgr</artifactId>
+ <packaging>war</packaging>
+ <version>1.0-SNAPSHOT</version>
+
+ <build>
+ <finalName>cosmgr</finalName>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.cablelabs.vcpe</groupId>
+ <artifactId>cosbase</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.java b/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.java
new file mode 100644
index 0000000..50a118a
--- /dev/null
+++ b/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.java
@@ -0,0 +1,25 @@
+package com.cablelabs.vcpe.cos.cosmgr;
+
+import java.io.IOException;
+
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.container.ContainerResponseContext;
+import javax.ws.rs.container.ContainerResponseFilter;
+import javax.ws.rs.core.MultivaluedMap;
+
+//
+// enable cross origin responses, otherwise we can't send rest requests from domain different than that of the server hosting our service
+//
+
+public class CORSResponseFilter implements ContainerResponseFilter {
+
+ public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext)
+ throws IOException {
+
+ MultivaluedMap<String, Object> headers = responseContext.getHeaders();
+ headers.add("Access-Control-Allow-Origin", "*");
+ headers.add("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
+ headers.add("Access-Control-Allow-Headers", "X-Requested-With, Content-Type, X-Codingpedia");
+ }
+
+}
diff --git a/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.java b/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.java
new file mode 100644
index 0000000..8d9c889
--- /dev/null
+++ b/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.java
@@ -0,0 +1,18 @@
+package com.cablelabs.vcpe.cos.cosmgr;
+
+import org.glassfish.jersey.server.ResourceConfig;
+
+//
+// In order to avoid CORS issues, register our CORS Response filter
+//
+
+public class CoSJaxRsApplication extends ResourceConfig {
+
+ /**
+ * Register JAX-RS application components.
+ */
+ public CoSJaxRsApplication() {
+ packages("com.cablelabs.vcpe.cos.cosmgr");
+ register(CORSResponseFilter.class);
+ }
+} \ No newline at end of file
diff --git a/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CoSService.java b/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CoSService.java
new file mode 100644
index 0000000..e9390fc
--- /dev/null
+++ b/cos/cosmgr/src/main/java/com/cablelabs/vcpe/cos/cosmgr/CoSService.java
@@ -0,0 +1,130 @@
+package com.cablelabs.vcpe.cos.cosmgr;
+
+import com.cablelabs.vcpe.common.Dbg;
+import com.cablelabs.vcpe.cos.cosbase.model.CoS;
+import com.cablelabs.vcpe.cos.cosbase.repository.CoSRespositoryInMem;
+
+import javax.ws.rs.*;
+import javax.ws.rs.core.GenericEntity;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+import java.util.List;
+
+/**
+ * Root resource (exposed at "myresource" path)
+ */
+@Path("cos")
+public class CoSService
+{
+
+ @POST
+ @Consumes(MediaType.APPLICATION_JSON)
+ @Produces(MediaType.APPLICATION_JSON)
+ //--------------------------------------------------------
+ public Response create(CoS cos)
+ //--------------------------------------------------------
+ {
+ if ( cos == null) {
+ return Response.status(Response.Status.BAD_REQUEST).build();
+ }
+
+ Dbg.p("\nADDING [" + cos.getId() + "] to cos repo");
+ CoSRespositoryInMem.INSTANCE.add(cos);
+ CoSRespositoryInMem.INSTANCE.dump(0);
+ return Response.ok().entity(cos).build();
+ }
+
+ @PUT
+ @Path("{cosId}")
+ @Consumes(MediaType.APPLICATION_JSON)
+ @Produces(MediaType.APPLICATION_JSON)
+ //--------------------------------------------------------
+ public Response update(CoS cos)
+ //--------------------------------------------------------
+ {
+ Dbg.p("\nUPDATING [" + cos.getId()+"]");
+ CoSRespositoryInMem.INSTANCE.update(cos);
+ CoSRespositoryInMem.INSTANCE.dump(0);
+ return Response.ok().entity(cos).build();
+ }
+
+ @GET
+ @Produces(MediaType.APPLICATION_JSON)
+ @Path("{cosId}")
+ //--------------------------------------------------------
+ public Response get( @PathParam("cosId") String cosId )
+ //--------------------------------------------------------
+ {
+ if ( cosId == null) {
+ return Response.status(Response.Status.BAD_REQUEST).build();
+ }
+ Dbg.p("\nRETRIEVING ["+cosId+"]");
+ CoSRespositoryInMem.INSTANCE.dump(1);
+ CoS cos = CoSRespositoryInMem.INSTANCE.get(cosId);
+ if (cos == null) {
+ return Response.status(Response.Status.NOT_FOUND).build();
+ }
+ cos.dump(1);
+ return Response.ok().entity(cos).build();
+ }
+
+ @DELETE
+ @Path("{cosId}")
+ @Consumes(MediaType.APPLICATION_JSON)
+ @Produces(MediaType.APPLICATION_JSON)
+ //--------------------------------------------------------
+ public Response delete(@PathParam("cosId") String cosId)
+ //--------------------------------------------------------
+
+ {
+ if ( cosId == null) {
+ return Response.status(Response.Status.BAD_REQUEST).build();
+ }
+ Dbg.p("\nDELETE:" + cosId);
+ CoSRespositoryInMem.INSTANCE.delete(cosId);
+ CoSRespositoryInMem.INSTANCE.dump(0);
+ return Response.ok().build();
+ }
+
+
+ @GET
+ @Path("list")
+ @Produces(MediaType.APPLICATION_JSON)
+ //--------------------------------------------------------
+ public Response cosList()
+ //--------------------------------------------------------
+ // get a list of all CoS objects
+ {
+ Dbg.p("\nCOS GET ALL:");
+ List cosList = CoSRespositoryInMem.INSTANCE.getAll();
+ if (cosList == null )
+ {
+ return Response.status(Response.Status.NOT_FOUND).build();
+ }
+ return Response.ok().entity(new GenericEntity<List<CoS>>(cosList) {}).build();
+ }
+
+ @GET
+ @Produces(MediaType.APPLICATION_JSON)
+ //--------------------------------------------------------
+ public CoS testGet()
+ //--------------------------------------------------------
+ // simple get to check out json format
+
+ {
+ CoS cos = new CoS();
+ cos.setAllProps("testGetCoS", 100, 0.99, 17.43, 2.43, 0.01);
+ return cos;
+ }
+
+ @GET
+ @Produces(MediaType.TEXT_PLAIN)
+ //--------------------------------------------------------
+ public String ping()
+ //--------------------------------------------------------
+ // simple ping to check connectivity
+ {
+ Dbg.p("In CoS Service simple get connection test server");
+ return "... pingCos reponse";
+ }
+}
diff --git a/cos/cosmgr/src/main/webapp/WEB-INF/web.xml b/cos/cosmgr/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..49cf6ad
--- /dev/null
+++ b/cos/cosmgr/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- This web.xml file is not required when using Servlet 3.0 container,
+see implementation details http://jersey.java.net/nonav/documentation/latest/jax-rs.html -->
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <servlet>
+ <servlet-name>Jersey Web Application</servlet-name>
+ <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
+ <init-param>
+ <param-name>jersey.config.server.provider.packages</param-name>
+ <param-value>com.cablelabs.vcpe.cos</param-value>
+ </init-param>
+ <init-param>
+ <param-name>javax.ws.rs.Application</param-name>
+ <param-value>com.cablelabs.vcpe.cos.cosmgr.CoSJaxRsApplication</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Jersey Web Application</servlet-name>
+ <url-pattern>/webapi/*</url-pattern>
+ </servlet-mapping>
+</web-app>
+
diff --git a/cos/cosmgr/src/main/webapp/index.jsp b/cos/cosmgr/src/main/webapp/index.jsp
new file mode 100644
index 0000000..a064b45
--- /dev/null
+++ b/cos/cosmgr/src/main/webapp/index.jsp
@@ -0,0 +1,8 @@
+<html>
+<body>
+ <h2>Jersey RESTful Web Application!</h2>
+ <p><a href="webapi/myresource">Jersey resource</a>
+ <p>Visit <a href="http://jersey.java.net">Project Jersey website</a>
+ for more information on Jersey!
+</body>
+</html>
diff --git a/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.class b/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.class
new file mode 100644
index 0000000..1bc8889
--- /dev/null
+++ b/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.class
Binary files differ
diff --git a/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.class b/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.class
new file mode 100644
index 0000000..ef46719
--- /dev/null
+++ b/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.class
Binary files differ
diff --git a/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService$1.class b/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService$1.class
new file mode 100644
index 0000000..cc9d6f7
--- /dev/null
+++ b/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService$1.class
Binary files differ
diff --git a/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService.class b/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService.class
new file mode 100644
index 0000000..23ee3d9
--- /dev/null
+++ b/cos/cosmgr/target/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService.class
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr.war b/cos/cosmgr/target/cosmgr.war
new file mode 100644
index 0000000..f10f3a5
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr.war
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.class b/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.class
new file mode 100644
index 0000000..1bc8889
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CORSResponseFilter.class
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.class b/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.class
new file mode 100644
index 0000000..ef46719
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSJaxRsApplication.class
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService$1.class b/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService$1.class
new file mode 100644
index 0000000..cc9d6f7
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService$1.class
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService.class b/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService.class
new file mode 100644
index 0000000..23ee3d9
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/classes/com/cablelabs/vcpe/cos/cosmgr/CoSService.class
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/asm-all-repackaged-2.2.0-b14.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/asm-all-repackaged-2.2.0-b14.jar
new file mode 100644
index 0000000..9c1f40d
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/asm-all-repackaged-2.2.0-b14.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/cglib-2.2.0-b14.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/cglib-2.2.0-b14.jar
new file mode 100644
index 0000000..7d6963b
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/cglib-2.2.0-b14.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/common-1.0-SNAPSHOT.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/common-1.0-SNAPSHOT.jar
new file mode 100644
index 0000000..267b07a
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/common-1.0-SNAPSHOT.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/cosbase-1.0-SNAPSHOT.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/cosbase-1.0-SNAPSHOT.jar
new file mode 100644
index 0000000..d991659
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/cosbase-1.0-SNAPSHOT.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/guava-14.0.1.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/guava-14.0.1.jar
new file mode 100644
index 0000000..3a3d925
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/guava-14.0.1.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-api-2.2.0-b14.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-api-2.2.0-b14.jar
new file mode 100644
index 0000000..acec5bc
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-api-2.2.0-b14.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-locator-2.2.0-b14.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-locator-2.2.0-b14.jar
new file mode 100644
index 0000000..fb2687f
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-locator-2.2.0-b14.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-utils-2.2.0-b14.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-utils-2.2.0-b14.jar
new file mode 100644
index 0000000..2c8df43
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/hk2-utils-2.2.0-b14.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.annotation-api-1.2.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.annotation-api-1.2.jar
new file mode 100644
index 0000000..9ab39ff
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.annotation-api-1.2.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.inject-2.2.0-b14.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.inject-2.2.0-b14.jar
new file mode 100644
index 0000000..21463e7
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.inject-2.2.0-b14.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.ws.rs-api-2.0.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.ws.rs-api-2.0.jar
new file mode 100644
index 0000000..b7d364b
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/javax.ws.rs-api-2.0.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-client-2.2.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-client-2.2.jar
new file mode 100644
index 0000000..cab47b0
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-client-2.2.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-common-2.2.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-common-2.2.jar
new file mode 100644
index 0000000..55d27ed
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-common-2.2.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-container-servlet-core-2.2.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-container-servlet-core-2.2.jar
new file mode 100644
index 0000000..e03b5f9
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-container-servlet-core-2.2.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-media-moxy-2.2.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-media-moxy-2.2.jar
new file mode 100644
index 0000000..786290a
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-media-moxy-2.2.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-server-2.2.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-server-2.2.jar
new file mode 100644
index 0000000..37b3410
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/jersey-server-2.2.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.antlr-2.5.0.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.antlr-2.5.0.jar
new file mode 100644
index 0000000..cff0ef8
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.antlr-2.5.0.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.asm-2.5.0.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.asm-2.5.0.jar
new file mode 100644
index 0000000..832e18e
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.asm-2.5.0.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.core-2.5.0.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.core-2.5.0.jar
new file mode 100644
index 0000000..01bb838
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.core-2.5.0.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.moxy-2.5.0.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.moxy-2.5.0.jar
new file mode 100644
index 0000000..29a1057
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/org.eclipse.persistence.moxy-2.5.0.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/osgi-resource-locator-1.0.1.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/osgi-resource-locator-1.0.1.jar
new file mode 100644
index 0000000..bd6aa17
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/osgi-resource-locator-1.0.1.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/lib/validation-api-1.1.0.Final.jar b/cos/cosmgr/target/cosmgr/WEB-INF/lib/validation-api-1.1.0.Final.jar
new file mode 100644
index 0000000..de85403
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/lib/validation-api-1.1.0.Final.jar
Binary files differ
diff --git a/cos/cosmgr/target/cosmgr/WEB-INF/web.xml b/cos/cosmgr/target/cosmgr/WEB-INF/web.xml
new file mode 100644
index 0000000..49cf6ad
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/WEB-INF/web.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- This web.xml file is not required when using Servlet 3.0 container,
+see implementation details http://jersey.java.net/nonav/documentation/latest/jax-rs.html -->
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <servlet>
+ <servlet-name>Jersey Web Application</servlet-name>
+ <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
+ <init-param>
+ <param-name>jersey.config.server.provider.packages</param-name>
+ <param-value>com.cablelabs.vcpe.cos</param-value>
+ </init-param>
+ <init-param>
+ <param-name>javax.ws.rs.Application</param-name>
+ <param-value>com.cablelabs.vcpe.cos.cosmgr.CoSJaxRsApplication</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Jersey Web Application</servlet-name>
+ <url-pattern>/webapi/*</url-pattern>
+ </servlet-mapping>
+</web-app>
+
diff --git a/cos/cosmgr/target/cosmgr/index.jsp b/cos/cosmgr/target/cosmgr/index.jsp
new file mode 100644
index 0000000..a064b45
--- /dev/null
+++ b/cos/cosmgr/target/cosmgr/index.jsp
@@ -0,0 +1,8 @@
+<html>
+<body>
+ <h2>Jersey RESTful Web Application!</h2>
+ <p><a href="webapi/myresource">Jersey resource</a>
+ <p>Visit <a href="http://jersey.java.net">Project Jersey website</a>
+ for more information on Jersey!
+</body>
+</html>
diff --git a/cos/cosmgr/target/maven-archiver/pom.properties b/cos/cosmgr/target/maven-archiver/pom.properties
new file mode 100644
index 0000000..3ea6361
--- /dev/null
+++ b/cos/cosmgr/target/maven-archiver/pom.properties
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Thu Aug 06 14:01:18 PDT 2015
+version=1.0-SNAPSHOT
+groupId=com.cablelabs.vcpe
+artifactId=cosmgr