diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-09-07 11:41:35 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-09-07 11:41:44 -0500 |
commit | 824dc7b5fc0e1ccdf7f460479aff344727f0f01e (patch) | |
tree | 2cc956ba4bca9dd05bdfecc682a92f5b806678e3 /cadi/servlet-sample/WEB-INF | |
parent | b8369a2668ad8f011d118de83a7b70f75f247332 (diff) |
Add Servlet Samples
Issue-ID: AAF-472
Change-Id: I69aae6509d65340942c4dee718b5dfe7726aab04
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi/servlet-sample/WEB-INF')
-rw-r--r-- | cadi/servlet-sample/WEB-INF/.gitignore | 1 | ||||
-rw-r--r-- | cadi/servlet-sample/WEB-INF/web.xml | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/cadi/servlet-sample/WEB-INF/.gitignore b/cadi/servlet-sample/WEB-INF/.gitignore new file mode 100644 index 00000000..8e4ce94c --- /dev/null +++ b/cadi/servlet-sample/WEB-INF/.gitignore @@ -0,0 +1 @@ +classes/ diff --git a/cadi/servlet-sample/WEB-INF/web.xml b/cadi/servlet-sample/WEB-INF/web.xml new file mode 100644 index 00000000..0b869fe6 --- /dev/null +++ b/cadi/servlet-sample/WEB-INF/web.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<web-app 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" + version="2.5"> + <servlet> + <servlet-name>MyServlet</servlet-name> + <servlet-class>org.onap.aaf.sample.cadi.MyServlet</servlet-class> + </servlet> + + <servlet-mapping> + <servlet-name>MyServlet</servlet-name> + <url-pattern>/testme</url-pattern> + </servlet-mapping> + + <filter> + <filter-name>CADI</filter-name> + <filter-class>org.onap.aaf.cadi.filter.CadiFilter</filter-class> + <init-param> + <param-name>cadi_prop_files</param-name> + <param-value>/opt/app/osaafE/client/etc/org.osaaf.aaf.client.props</param-value> + </init-param> + </filter> + + <filter-mapping> + <filter-name>CADI</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> +</web-app> + |