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, |
---|
22 | see 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 | |
---|
29 | |
---|
30 | <context-param> |
---|
31 | <param-name>contextConfigLocation</param-name> |
---|
32 | <param-value>classpath*:spring-config/**/*.xml</param-value> |
---|
33 | </context-param> |
---|
34 | <context-param> |
---|
35 | <param-name>eu.dasish.annotation.backend.schemaLocation</param-name> |
---|
36 | <param-value>http://www.dasish.eu/ns/addit https://svn.clarin.eu/DASISH/t5.6/schema/trunk/annotator-schema/src/main/resources/DASISH-schema.xsd</param-value> |
---|
37 | <!-- <param-value>http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/schema/trunk/annotator-schema/src/main/target/DASISH-schema.xsd</param-value> --> |
---|
38 | </context-param> |
---|
39 | <context-param> |
---|
40 | <param-name>eu.dasish.annotation.backend.logDatabaseLocation</param-name> |
---|
41 | <param-value>${catalina.base}/logs/dasishDatabase.log</param-value> |
---|
42 | </context-param> |
---|
43 | <context-param> |
---|
44 | <param-name>eu.dasish.annotation.backend.logServerLocation</param-name> |
---|
45 | <param-value>${catalina.base}/logs/dasishServer.log</param-value> |
---|
46 | </context-param> |
---|
47 | <context-param> |
---|
48 | <param-name>eu.dasish.annotation.backend.logout</param-name> |
---|
49 | <param-value>/ds/webannotator?shhaaDo=lO</param-value> |
---|
50 | </context-param> |
---|
51 | |
---|
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 | <load-on-startup>1</load-on-startup> |
---|
68 | </servlet> |
---|
69 | <servlet> |
---|
70 | <servlet-name>ServletAdaptor</servlet-name> |
---|
71 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
---|
72 | <load-on-startup>1</load-on-startup> |
---|
73 | </servlet> |
---|
74 | <servlet-mapping> |
---|
75 | <servlet-name>annotator-backend</servlet-name> |
---|
76 | <url-pattern>/api/*</url-pattern> |
---|
77 | </servlet-mapping> |
---|
78 | |
---|
79 | <servlet-mapping> |
---|
80 | <servlet-name>ServletAdaptor</servlet-name> |
---|
81 | <url-pattern>/webresources/*</url-pattern> |
---|
82 | </servlet-mapping> |
---|
83 | |
---|
84 | <!-- <security-constraint> |
---|
85 | <display-name>Protected backend localhost</display-name> |
---|
86 | <web-resource-collection> |
---|
87 | <web-resource-name> Protected backend rest service</web-resource-name> |
---|
88 | <description /> |
---|
89 | <url-pattern>/*</url-pattern> |
---|
90 | <http-method>GET</http-method> |
---|
91 | <http-method>DELETE</http-method> |
---|
92 | <http-method>PUT</http-method> |
---|
93 | <http-method>POST</http-method> |
---|
94 | </web-resource-collection> |
---|
95 | <auth-constraint> |
---|
96 | <role-name>tomcat</role-name> |
---|
97 | </auth-constraint> |
---|
98 | </security-constraint> |
---|
99 | <login-config> |
---|
100 | <auth-method>BASIC</auth-method> |
---|
101 | </login-config> |
---|
102 | <security-role> |
---|
103 | <description> The role that is required to log in to the Application |
---|
104 | </description> |
---|
105 | <role-name>tomcat</role-name> |
---|
106 | </security-role> --> |
---|
107 | |
---|
108 | <filter> |
---|
109 | <filter-name>AAIFilter</filter-name> |
---|
110 | <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class> |
---|
111 | </filter> |
---|
112 | <filter-mapping> |
---|
113 | <filter-name>AAIFilter</filter-name> |
---|
114 | <url-pattern>/*</url-pattern> |
---|
115 | </filter-mapping> |
---|
116 | |
---|
117 | |
---|
118 | </web-app> |
---|