add jetty-web using sharing session manager
authorAlex Heneveld <alex.heneveld@cloudsoftcorp.com>
Thu, 24 Jan 2019 15:33:37 +0000 (15:33 +0000)
committerAlex Heneveld <alex.heneveld@cloudsoftcorp.com>
Mon, 28 Jan 2019 00:13:31 +0000 (00:13 +0000)
ui-modules/app-inspector/pom.xml
ui-modules/app-inspector/src/main/webapp/WEB-INF/jetty-web.xml [new file with mode: 0644]

index 30c7809..94a1b35 100644 (file)
                         <Import-Package>
                             org.apache.brooklyn.ui.modularity.module.api,
                             org.apache.brooklyn.rest.filter,
+                            org.apache.brooklyn.rest.util,
                             org.eclipse.jetty.servlets,
                             *
                         </Import-Package>
diff --git a/ui-modules/app-inspector/src/main/webapp/WEB-INF/jetty-web.xml b/ui-modules/app-inspector/src/main/webapp/WEB-INF/jetty-web.xml
new file mode 100644 (file)
index 0000000..a6c4094
--- /dev/null
@@ -0,0 +1,26 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<Configure class="org.eclipse.jetty.webapp.WebAppContext">
+    <Set name="sessionHandler">
+      <New class="org.apache.brooklyn.rest.util.SharingSessionHandler">
+      </New>
+    </Set>
+</Configure>
+