diff options
author | Mufaddal Makati <mmakati@mmakatimbpr15.cablelabs.com> | 2015-08-07 13:09:49 -0700 |
---|---|---|
committer | Mufaddal Makati <mmakati@mmakatimbpr15.cablelabs.com> | 2015-08-07 13:09:49 -0700 |
commit | ed73dbf357aff41edcbab401a94e5fbc266d9391 (patch) | |
tree | e3561a9290e4bd0de19704228867ec91910e68ed /svc/svcmgr/src/main/webapp | |
parent | f44f4aa8b5eb244fc7603c17e875eebf0f3b0b67 (diff) |
First Commit
Diffstat (limited to 'svc/svcmgr/src/main/webapp')
-rw-r--r-- | svc/svcmgr/src/main/webapp/WEB-INF/web.xml | 22 | ||||
-rw-r--r-- | svc/svcmgr/src/main/webapp/index.jsp | 8 |
2 files changed, 30 insertions, 0 deletions
diff --git a/svc/svcmgr/src/main/webapp/WEB-INF/web.xml b/svc/svcmgr/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..06f0b7c --- /dev/null +++ b/svc/svcmgr/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,22 @@ +<?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.svc</param-value> + </init-param> + <init-param> + <param-name>javax.ws.rs.Application</param-name> + <param-value>com.cablelabs.vcpe.svc.svcmgr.SvcJaxRsApplication</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/svc/svcmgr/src/main/webapp/index.jsp b/svc/svcmgr/src/main/webapp/index.jsp new file mode 100644 index 0000000..a064b45 --- /dev/null +++ b/svc/svcmgr/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> |