summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/webapp-heat-validation
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-02-19 12:57:33 +0200
committerMichael Lando <ml636r@att.com>2017-02-19 13:47:13 +0200
commitefa037d34be7b1570efdc767c79fad8d4005f10e (patch)
treecf1036ba2728dea8a61492b678fa91954e629403 /openecomp-ui/webapp-heat-validation
parentf5f13c4f6b6fe3b4d98e349dfd7db59339803436 (diff)
Add new code new version
Change-Id: Ic02a76313503b526f17c3df29eb387a29fe6a42a Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'openecomp-ui/webapp-heat-validation')
-rw-r--r--openecomp-ui/webapp-heat-validation/META-INF/context.xml4
-rw-r--r--openecomp-ui/webapp-heat-validation/WEB-INF/jetty-web.xml8
-rw-r--r--openecomp-ui/webapp-heat-validation/WEB-INF/rewrite.config2
-rw-r--r--openecomp-ui/webapp-heat-validation/WEB-INF/web.xml51
-rw-r--r--openecomp-ui/webapp-heat-validation/heat-validation.xml45
5 files changed, 110 insertions, 0 deletions
diff --git a/openecomp-ui/webapp-heat-validation/META-INF/context.xml b/openecomp-ui/webapp-heat-validation/META-INF/context.xml
new file mode 100644
index 0000000000..2ada7fc48f
--- /dev/null
+++ b/openecomp-ui/webapp-heat-validation/META-INF/context.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Context>
+ <Valve className="org.apache.catalina.valves.rewrite.RewriteValve"/>
+</Context>
diff --git a/openecomp-ui/webapp-heat-validation/WEB-INF/jetty-web.xml b/openecomp-ui/webapp-heat-validation/WEB-INF/jetty-web.xml
new file mode 100644
index 0000000000..bc3bfa62f0
--- /dev/null
+++ b/openecomp-ui/webapp-heat-validation/WEB-INF/jetty-web.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Configure PUBLIC
+ "-//Mort Bay Consulting//DTD Configure//EN"
+ "http://www.eclipse.org/jetty/configure_9_0.dtd">
+
+<Configure class="org.eclipse.jetty.webapp.WebAppContext">
+ <Set name="contextPath">/heat-validation</Set>
+</Configure>
diff --git a/openecomp-ui/webapp-heat-validation/WEB-INF/rewrite.config b/openecomp-ui/webapp-heat-validation/WEB-INF/rewrite.config
new file mode 100644
index 0000000000..b5e1a31493
--- /dev/null
+++ b/openecomp-ui/webapp-heat-validation/WEB-INF/rewrite.config
@@ -0,0 +1,2 @@
+RewriteRule ^.*\..*$ - [L]
+RewriteRule ^.*$ /heat.html [L]
diff --git a/openecomp-ui/webapp-heat-validation/WEB-INF/web.xml b/openecomp-ui/webapp-heat-validation/WEB-INF/web.xml
new file mode 100644
index 0000000000..f84519eee3
--- /dev/null
+++ b/openecomp-ui/webapp-heat-validation/WEB-INF/web.xml
@@ -0,0 +1,51 @@
+<?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_3_0.xsd"
+ version="3.0">
+
+ <display-name>Heat-Validation</display-name>
+
+ <welcome-file-list>
+ <welcome-file>heat.html</welcome-file>
+ </welcome-file-list>
+
+ <servlet>
+ <servlet-name>js</servlet-name>
+ <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
+
+ <init-param>
+ <param-name>cacheControl</param-name>
+ <param-value>public, no-cache</param-value>
+ </init-param>
+ <init-param>
+ <param-name>etags</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>js</servlet-name>
+ <url-pattern>*.js</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>resources</servlet-name>
+ <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
+
+ <init-param>
+ <param-name>cacheControl</param-name>
+ <param-value>public, max-age=31536000</param-value>
+ </init-param>
+ <init-param>
+ <param-name>etags</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>resources</servlet-name>
+ <url-pattern>/</url-pattern>
+ </servlet-mapping>
+
+</web-app>
diff --git a/openecomp-ui/webapp-heat-validation/heat-validation.xml b/openecomp-ui/webapp-heat-validation/heat-validation.xml
new file mode 100644
index 0000000000..404dcf23f3
--- /dev/null
+++ b/openecomp-ui/webapp-heat-validation/heat-validation.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
+
+
+<Configure id="heatValidationWebapp" class="org.eclipse.jetty.webapp.WebAppContext">
+
+ <Set name="contextPath">/heat-validation</Set>
+ <Set name="war"><Property name="jetty.webapps" default="."/>/heat-validation.war</Set>
+
+ <!-- Enable WebSocket container -->
+ <Call name="setAttribute">
+ <Arg>org.eclipse.jetty.websocket.jsr356</Arg>
+ <Arg type="Boolean">true</Arg>
+ </Call>
+
+ <Set name="gzipHandler">
+ <New class="org.eclipse.jetty.server.handler.gzip.GzipHandler">
+ <Set name="minGzipSize">2048</Set>
+ </New>
+ </Set>
+
+
+ <Get name="securityHandler">
+ <Set name="loginService">
+ <New class="org.eclipse.jetty.security.HashLoginService">
+ <Set name="name">Test Realm</Set>
+ <Set name="config"><SystemProperty name="jetty.base" default="."/>/etc/realm.properties</Set>
+ <!-- To enable reload of realm when properties change, uncomment the following lines -->
+ <!-- changing refreshInterval (in seconds) as desired -->
+ <!--
+ <Set name="refreshInterval">5</Set>
+ <Call name="start"></Call>
+ -->
+ </New>
+ </Set>
+ <Set name="authenticator">
+ <New class="org.eclipse.jetty.security.authentication.FormAuthenticator">
+ <Set name="alwaysSaveUri">true</Set>
+ </New>
+ </Set>
+ <Set name="checkWelcomeFiles">true</Set>
+ </Get>
+
+
+</Configure>