source: DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/WEB-INF/web.xml @ 5774

Last change on this file since 5774 was 5774, checked in by olhsha@mpi.nl, 10 years ago

updating annotations: if the current user is not owner then the permission part is ignored

File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
4    Copyright (C) 2013 DASISH
5
6    This program is free software; you can redistribute it and/or
7    modify it under the terms of the GNU General Public License
8    as published by the Free Software Foundation; either version 2
9    of the License, or (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20-->
21<!-- This web.xml file is not required when using Servlet 3.0 container,
22see implementation details http://jersey.java.net/nonav/documentation/latest/jax-rs.html#d4e194 -->
23<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">
24    <context-param>
25        <param-name>ShhaaConfigLocation</param-name>
26        <param-value>/WEB-INF/shhaa.xml</param-value>
27    </context-param>
28    <context-param>
29        <param-name>contextConfigLocation</param-name>
30        <param-value>classpath*:spring-config/**/*.xml</param-value>
31    </context-param>
32    <context-param>
33        <param-name>eu.dasish.annotation.backend.logDatabaseLocation</param-name>
34        <param-value>${catalina.base}/logs/dasishDatabase.log</param-value>
35    </context-param>
36    <context-param>
37        <param-name>eu.dasish.annotation.backend.logServerLocation</param-name>
38        <param-value>${catalina.base}/logs/dasishServer.log</param-value>
39    </context-param>
40    <context-param>
41        <param-name>eu.dasish.annotation.backend.isShibbolethSession</param-name>
42        <param-value>true</param-value>
43    </context-param>
44    <context-param>
45        <param-name>eu.dasish.annotation.backend.logout.basic</param-name>
46        <param-value>/j_spring_security_logout</param-value> 
47    </context-param>
48    <context-param>
49        <param-name>eu.dasish.annotation.backend.logout.shibboleth</param-name>
50        <param-value>https://lux17.mpi.nl/Shibboleth.sso/Logout</param-value> 
51    </context-param>
52   
53    <listener>
54        <listener-class>
55            org.springframework.web.context.ContextLoaderListener
56        </listener-class>
57    </listener>
58    <servlet>
59        <servlet-name>annotator-backend</servlet-name>
60        <servlet-class>
61            com.sun.jersey.spi.spring.container.servlet.SpringServlet
62        </servlet-class>
63        <init-param>
64            <param-name>com.sun.jersey.config.property.packages</param-name>
65            <param-value>eu.dasish.annotation.backend</param-value>
66        </init-param>
67        <init-param>
68            <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
69            <param-value>com.sun.jersey.api.container.filter.PostReplaceFilter</param-value>
70        </init-param>
71        <load-on-startup>1</load-on-startup>
72    </servlet>
73    <servlet>
74        <servlet-name>ServletAdaptor</servlet-name>
75        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
76        <load-on-startup>1</load-on-startup>
77    </servlet>
78    <servlet-mapping>
79        <servlet-name>annotator-backend</servlet-name>
80        <url-pattern>/api/*</url-pattern>
81    </servlet-mapping>
82   
83    <servlet-mapping>
84        <servlet-name>ServletAdaptor</servlet-name>
85        <url-pattern>/webresources/*</url-pattern>
86    </servlet-mapping>
87   
88    <!--   <security-constraint>
89        <display-name>Protected backend localhost</display-name>
90        <web-resource-collection>
91            <web-resource-name> Protected backend rest service</web-resource-name>
92            <description />
93            <url-pattern>/*</url-pattern>
94            <http-method>GET</http-method>
95            <http-method>DELETE</http-method>
96            <http-method>PUT</http-method>
97            <http-method>POST</http-method>
98        </web-resource-collection>
99        <auth-constraint>
100            <role-name>tomcat</role-name>
101        </auth-constraint>
102    </security-constraint>
103    <login-config>
104        <auth-method>BASIC</auth-method>
105    </login-config>
106    <security-role>
107        <description> The role that is required to log in to the Application
108        </description>
109        <role-name>tomcat</role-name>
110    </security-role> -->
111   
112    <!-- Spring security -->
113     <!-- <filter>
114        <filter-name>springSecurityFilterChain</filter-name>
115        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
116    </filter>
117    <filter-mapping>
118        <filter-name>springSecurityFilterChain</filter-name>
119        <url-pattern>/*</url-pattern>
120    </filter-mapping> -->
121   
122    <!--  Shibboleth filter -->
123   <filter>
124        <filter-name>AAIFilter</filter-name>
125        <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class>
126    </filter>
127    <filter-mapping>
128        <filter-name>AAIFilter</filter-name>
129        <url-pattern>/*</url-pattern>
130    </filter-mapping> 
131   
132  </web-app> 
133       
Note: See TracBrowser for help on using the repository browser.