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 | <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>false</param-value> |
---|
43 | </context-param> |
---|
44 | <context-param> |
---|
45 | <param-name>eu.dasish.annotation.backend.logout</param-name> |
---|
46 | <param-value>/j_spring_security_logout</param-value> |
---|
47 | </context-param> |
---|
48 | |
---|
49 | |
---|
50 | <listener> |
---|
51 | <listener-class> |
---|
52 | org.springframework.web.context.ContextLoaderListener |
---|
53 | </listener-class> |
---|
54 | </listener> |
---|
55 | <servlet> |
---|
56 | <servlet-name>annotator-backend</servlet-name> |
---|
57 | <servlet-class> |
---|
58 | com.sun.jersey.spi.spring.container.servlet.SpringServlet |
---|
59 | </servlet-class> |
---|
60 | <init-param> |
---|
61 | <param-name>com.sun.jersey.config.property.packages</param-name> |
---|
62 | <param-value>eu.dasish.annotation.backend</param-value> |
---|
63 | </init-param> |
---|
64 | <load-on-startup>1</load-on-startup> |
---|
65 | </servlet> |
---|
66 | <servlet> |
---|
67 | <servlet-name>ServletAdaptor</servlet-name> |
---|
68 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
---|
69 | <load-on-startup>1</load-on-startup> |
---|
70 | </servlet> |
---|
71 | <servlet-mapping> |
---|
72 | <servlet-name>annotator-backend</servlet-name> |
---|
73 | <url-pattern>/api/*</url-pattern> |
---|
74 | </servlet-mapping> |
---|
75 | |
---|
76 | <servlet-mapping> |
---|
77 | <servlet-name>ServletAdaptor</servlet-name> |
---|
78 | <url-pattern>/webresources/*</url-pattern> |
---|
79 | </servlet-mapping> |
---|
80 | |
---|
81 | <!-- <security-constraint> |
---|
82 | <display-name>Protected backend localhost</display-name> |
---|
83 | <web-resource-collection> |
---|
84 | <web-resource-name> Protected backend rest service</web-resource-name> |
---|
85 | <description /> |
---|
86 | <url-pattern>/*</url-pattern> |
---|
87 | <http-method>GET</http-method> |
---|
88 | <http-method>DELETE</http-method> |
---|
89 | <http-method>PUT</http-method> |
---|
90 | <http-method>POST</http-method> |
---|
91 | </web-resource-collection> |
---|
92 | <auth-constraint> |
---|
93 | <role-name>tomcat</role-name> |
---|
94 | </auth-constraint> |
---|
95 | </security-constraint> |
---|
96 | <login-config> |
---|
97 | <auth-method>BASIC</auth-method> |
---|
98 | </login-config> |
---|
99 | <security-role> |
---|
100 | <description> The role that is required to log in to the Application |
---|
101 | </description> |
---|
102 | <role-name>tomcat</role-name> |
---|
103 | </security-role> --> |
---|
104 | |
---|
105 | <!-- Spring security --> |
---|
106 | <filter> |
---|
107 | <filter-name>springSecurityFilterChain</filter-name> |
---|
108 | <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
---|
109 | </filter> |
---|
110 | <filter-mapping> |
---|
111 | <filter-name>springSecurityFilterChain</filter-name> |
---|
112 | <url-pattern>/*</url-pattern> |
---|
113 | </filter-mapping> |
---|
114 | |
---|
115 | </web-app> |
---|
116 | |
---|