Joaquín Reñé
yesterday 9430a83dde5d7c3f4535f6c3a5f9e21ac68ac8fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="utf-8"?>
<!--
 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.
-->
<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
                            https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
         version="6.0"
         metadata-complete="true">
  <display-name>SeCuris Server</display-name>
  <description>
    SeCuris Server application with client API and administration GUI
  </description>
    <context-param>
        <param-name>resteasy.role.based.security</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>resteasy.providers</param-name>
        <param-value>net.curisit.securis.DefaultExceptionHandler</param-value>
    </context-param>
    <context-param>
       <param-name>resteasy.servlet.mapping.prefix</param-name>
       <param-value>/api</param-value>
   </context-param>
    
    <!-- 
   <context-param>
       <param-name>resteasy.injector.factory</param-name>
       <param-value>org.jboss.resteasy.cdi.CdiInjectorFactory</param-value>
   </context-param>
     -->
     
   <filter>
        <filter-name>DevFilter</filter-name>
        <filter-class>
            net.curisit.securis.DevFilter
        </filter-class>
    </filter>    
    <filter-mapping>
        <filter-name>DevFilter</filter-name>
        <url-pattern>/api/*</url-pattern>
    </filter-mapping>
   <filter>
        <filter-name>GzipFilter</filter-name>
        <filter-class>
            net.curisit.securis.GzipFilter
        </filter-class>
    </filter>    
    <filter-mapping>
        <filter-name>GzipFilter</filter-name>
        <url-pattern>/main-bundle.js</url-pattern>
    </filter-mapping>
   <servlet>
       <servlet-name>Resteasy</servlet-name>
       <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
       <init-param>
           <param-name>jakarta.ws.rs.Application</param-name>
           <param-value>net.curisit.securis.RestServicesApplication</param-value>
       </init-param>
       <load-on-startup>1</load-on-startup>
   </servlet>
   
   <servlet-mapping>
       <servlet-name>Resteasy</servlet-name>
       <url-pattern>/api/*</url-pattern>
   </servlet-mapping>
   
   <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>
    <!-- Security roles referenced by this web application -->
    <security-role>
       <description>
          Advance users, customers 
       </description>
       <role-name>advance</role-name>
    </security-role>
    <security-role>
       <description>
          Administrator role
       </description>
       <role-name>admin</role-name>
    </security-role>
   
   <resource-ref>
       <description>SeCuris DataSource</description>
       <res-ref-name>SeCurisDS</res-ref-name>
       <res-type>jakarta.sql.DataSource</res-type>
       <res-auth>Container</res-auth>
   </resource-ref>
   
   <!-- 
   <resource-env-ref>
      <resource-env-ref-name>BeanManager</resource-env-ref-name>
      <resource-env-ref-type>jakarta.enterprise.inject.spi.BeanManager</resource-env-ref-type>
   </resource-env-ref>
    -->
</web-app>