ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | ECOMP MSO |
| 5 | ================================================================================ |
| 6 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 7 | ================================================================================ |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
| 22 | <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"> |
| 23 | <display-name>camunda bpm webapp</display-name> |
| 24 | |
| 25 | <context-param> |
| 26 | <param-name>contextConfigLocation</param-name> |
| 27 | <param-value>/WEB-INF/applicationContext.xml</param-value> |
| 28 | </context-param> |
| 29 | |
| 30 | <!-- Added for MSO: use our log4j configuration file --> |
| 31 | <context-param> |
| 32 | <param-name>log.configuration</param-name> |
| 33 | <param-value>logback.bpmn.xml</param-value> |
| 34 | </context-param> |
| 35 | |
| 36 | <listener> |
| 37 | <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
| 38 | </listener> |
| 39 | |
| 40 | <!-- cockpit bootstrap listener --> |
| 41 | <listener> |
| 42 | <listener-class>org.camunda.bpm.cockpit.impl.web.bootstrap.CockpitContainerBootstrap</listener-class> |
| 43 | </listener> |
| 44 | |
| 45 | <!-- admin bootstrap listener --> |
| 46 | <listener> |
| 47 | <listener-class>org.camunda.bpm.admin.impl.web.bootstrap.AdminContainerBootstrap</listener-class> |
| 48 | </listener> |
| 49 | |
| 50 | <!-- tasklist bootstrap listener --> |
| 51 | <listener> |
| 52 | <listener-class>org.camunda.bpm.tasklist.impl.web.bootstrap.TasklistContainerBootstrap</listener-class> |
| 53 | </listener> |
| 54 | |
| 55 | <!-- Authentication filter --> |
| 56 | <filter> |
| 57 | <filter-name>Authentication Filter</filter-name> |
| 58 | <filter-class>org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter</filter-class> |
| 59 | </filter> |
| 60 | <filter-mapping> |
| 61 | <filter-name>Authentication Filter</filter-name> |
| 62 | <url-pattern>/*</url-pattern> |
| 63 | <dispatcher>REQUEST</dispatcher> |
| 64 | </filter-mapping> |
| 65 | |
| 66 | <!-- Security filter --> |
| 67 | <filter> |
| 68 | <filter-name>SecurityFilter</filter-name> |
| 69 | <filter-class>org.camunda.bpm.webapp.impl.security.filter.SecurityFilter</filter-class> |
| 70 | <init-param> |
| 71 | <param-name>configFile</param-name> |
| 72 | <param-value>/WEB-INF/securityFilterRules.json</param-value> |
| 73 | </init-param> |
| 74 | </filter> |
| 75 | <filter-mapping> |
| 76 | <filter-name>SecurityFilter</filter-name> |
| 77 | <url-pattern>/*</url-pattern> |
| 78 | <dispatcher>REQUEST</dispatcher> |
| 79 | </filter-mapping> |
| 80 | |
| 81 | <!-- engines filter --> |
| 82 | <filter> |
| 83 | <filter-name>Engines Filter</filter-name> |
| 84 | <filter-class>org.camunda.bpm.webapp.impl.engine.ProcessEnginesFilter</filter-class> |
| 85 | </filter> |
| 86 | <filter-mapping> |
| 87 | <filter-name>Engines Filter</filter-name> |
| 88 | <url-pattern>/app/*</url-pattern> |
| 89 | <dispatcher>REQUEST</dispatcher> |
| 90 | </filter-mapping> |
| 91 | |
| 92 | <!-- REST cache control filter --> |
| 93 | <filter> |
| 94 | <filter-name>CacheControlFilter</filter-name> |
| 95 | <filter-class>org.camunda.bpm.engine.rest.filter.CacheControlFilter</filter-class> |
| 96 | </filter> |
| 97 | <filter-mapping> |
| 98 | <filter-name>CacheControlFilter</filter-name> |
| 99 | <url-pattern>/api/*</url-pattern> |
| 100 | </filter-mapping> |
| 101 | |
| 102 | <!-- cockpit rest api --> |
| 103 | <servlet> |
| 104 | <servlet-name>Cockpit Api</servlet-name> |
| 105 | <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> |
| 106 | <init-param> |
| 107 | <param-name>javax.ws.rs.Application</param-name> |
| 108 | <param-value>org.camunda.bpm.cockpit.impl.web.CockpitApplication</param-value> |
| 109 | </init-param> |
| 110 | <init-param> |
| 111 | <param-name>resteasy.servlet.mapping.prefix</param-name> |
| 112 | <param-value>/api/cockpit</param-value> |
| 113 | </init-param> |
| 114 | </servlet> |
| 115 | <servlet-mapping> |
| 116 | <servlet-name>Cockpit Api</servlet-name> |
| 117 | <url-pattern>/api/cockpit/*</url-pattern> |
| 118 | </servlet-mapping> |
| 119 | |
| 120 | <!-- admin rest api --> |
| 121 | <servlet> |
| 122 | <servlet-name>Admin Api</servlet-name> |
| 123 | <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> |
| 124 | <init-param> |
| 125 | <param-name>javax.ws.rs.Application</param-name> |
| 126 | <param-value>org.camunda.bpm.admin.impl.web.AdminApplication</param-value> |
| 127 | </init-param> |
| 128 | <init-param> |
| 129 | <param-name>resteasy.servlet.mapping.prefix</param-name> |
| 130 | <param-value>/api/admin</param-value> |
| 131 | </init-param> |
| 132 | </servlet> |
| 133 | <servlet-mapping> |
| 134 | <servlet-name>Admin Api</servlet-name> |
| 135 | <url-pattern>/api/admin/*</url-pattern> |
| 136 | </servlet-mapping> |
| 137 | |
| 138 | <!-- tasklist rest api --> |
| 139 | <servlet> |
| 140 | <servlet-name>Tasklist Api</servlet-name> |
| 141 | <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> |
| 142 | <init-param> |
| 143 | <param-name>javax.ws.rs.Application</param-name> |
| 144 | <param-value>org.camunda.bpm.tasklist.impl.web.TasklistApplication</param-value> |
| 145 | </init-param> |
| 146 | <init-param> |
| 147 | <param-name>resteasy.servlet.mapping.prefix</param-name> |
| 148 | <param-value>/api/tasklist</param-value> |
| 149 | </init-param> |
| 150 | </servlet> |
| 151 | <servlet-mapping> |
| 152 | <servlet-name>Tasklist Api</servlet-name> |
| 153 | <url-pattern>/api/tasklist/*</url-pattern> |
| 154 | </servlet-mapping> |
| 155 | |
| 156 | <!-- engine rest api (embedded) --> |
| 157 | <servlet> |
| 158 | <servlet-name>Engine Api</servlet-name> |
| 159 | <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> |
| 160 | <init-param> |
| 161 | <param-name>javax.ws.rs.Application</param-name> |
| 162 | <param-value>org.camunda.bpm.webapp.impl.engine.EngineRestApplication</param-value> |
| 163 | </init-param> |
| 164 | <init-param> |
| 165 | <param-name>resteasy.servlet.mapping.prefix</param-name> |
| 166 | <param-value>/api/engine</param-value> |
| 167 | </init-param> |
| 168 | </servlet> |
| 169 | <servlet-mapping> |
| 170 | <servlet-name>Engine Api</servlet-name> |
| 171 | <url-pattern>/api/engine/*</url-pattern> |
| 172 | </servlet-mapping> |
| 173 | </web-app> |