source: ComponentRegistry/trunk/ComponentRegistry/src/main/webapp/WEB-INF/web.xml @ 5917

Last change on this file since 5917 was 5917, checked in by Twan Goosen, 10 years ago

First steps towards adapting to CCR as a replacement of ISOcat (refs #731): IsocatSerlvet? -> ConceptRegistryServlet?. Context param ...isocatRestUrl replaced with ...ccrRestUrl.
TODO: Apply transformation (both to DCIF and JSON), tweak CCR request (filtering of returned properties)

File size: 5.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Configuration file for ComponentRegistry in NON-SHIBBOLIZED context,
3i.e. development or testing environments. -->
4
5<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
6         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
8    <display-name>ComponentRegistry</display-name>
9    <description>Clarin Metadata Component Registry</description>
10    <listener>
11        <listener-class>org.springframework.web.context.ContextLoaderListener
12        </listener-class>
13    </listener>
14
15    <context-param>
16        <param-name>contextConfigLocation</param-name>
17        <param-value>classpath:spring-config/applicationContext.xml,classpath:spring-config/container-environment.xml
18        </param-value>
19    </context-param>
20   
21    <context-param>
22        <param-name>eu.clarin.cmdi.componentregistry.jpaDialect</param-name>
23        <param-value>org.hibernate.dialect.PostgreSQLDialect</param-value>
24    </context-param>
25
26    <filter>
27        <filter-name>characterEncodingFilter</filter-name>
28        <filter-class>clarin.cmdi.componentregistry.servlet.CharacterEncodingFilter
29        </filter-class>
30        <init-param>
31            <param-name>encoding</param-name>
32            <param-value>UTF-8</param-value>
33        </init-param>
34    </filter>
35    <filter>
36        <filter-name>NoCachingFilter</filter-name>
37        <filter-class>clarin.cmdi.componentregistry.servlet.DontCacheFilter</filter-class>
38    </filter>
39    <filter-mapping>
40        <filter-name>NoCachingFilter</filter-name>
41        <url-pattern>/rest/registry/*</url-pattern>
42    </filter-mapping>
43    <filter-mapping>
44        <filter-name>characterEncodingFilter</filter-name>
45        <url-pattern>/*</url-pattern>
46    </filter-mapping>
47    <filter>
48        <filter-name>wicket.componentregistry</filter-name>
49        <filter-class>org.apache.wicket.protocol.http.WicketFilter
50        </filter-class>
51        <init-param>
52            <param-name>applicationClassName</param-name>
53            <param-value>clarin.cmdi.componentregistry.frontend.AdminApp
54            </param-value>
55        </init-param>
56        <init-param>
57            <param-name>configuration</param-name>
58            <!-- <param-value>development</param-value> -->
59            <param-value>deployment</param-value>
60            <!-- you can override with -Dwicket.configuration=development -->
61        </init-param>
62    </filter>
63    <filter-mapping>
64        <filter-name>wicket.componentregistry</filter-name>
65        <url-pattern>/admin/*</url-pattern>
66    </filter-mapping>
67    <servlet>
68        <servlet-name>ComponentRegistry Web Application</servlet-name>
69        <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
70        <init-param> 
71            <param-name>com.sun.jersey.config.property.classnames</param-name> 
72            <param-value>com.sun.jersey.multipart.impl.FormDataMultiPartDispatchProvider</param-value> 
73        </init-param>
74        <init-param>
75            <param-name>com.sun.jersey.config.property.packages</param-name>
76            <param-value>com.wordnik.swagger.jersey.listing</param-value>
77        </init-param>
78        <load-on-startup>1</load-on-startup>
79    </servlet>
80    <servlet-mapping>
81        <servlet-name>ComponentRegistry Web Application</servlet-name>
82        <url-pattern>/rest/*</url-pattern>
83    </servlet-mapping>
84   
85    <servlet>
86        <servlet-name>Concept Registry Servlet</servlet-name>
87        <servlet-class>clarin.cmdi.componentregistry.servlet.ConceptRegistryServlet</servlet-class>
88        <load-on-startup>1</load-on-startup>
89    </servlet>
90    <servlet-mapping>
91        <servlet-name>Concept Registry Servlet</servlet-name>
92        <url-pattern>/ccr/*</url-pattern>
93    </servlet-mapping>
94   
95    <servlet>
96        <servlet-name>JerseyJaxrsConfig</servlet-name>
97        <servlet-class>com.wordnik.swagger.jersey.config.JerseyJaxrsConfig</servlet-class>
98        <init-param>
99            <param-name>api.version</param-name>
100            <param-value>1.0.0</param-value>
101        </init-param>
102        <init-param>
103            <param-name>swagger.api.basepath</param-name>
104            <param-value>http://localhost:8080/ComponentRegistry/rest</param-value>
105        </init-param>
106        <load-on-startup>2</load-on-startup>
107    </servlet>
108    <security-constraint>
109        <display-name>ComponentRegistry web service</display-name>
110        <web-resource-collection>
111            <web-resource-name>ComponentRegistry edit</web-resource-name>
112            <description />
113            <url-pattern>/rest/*</url-pattern>
114            <http-method>DELETE</http-method>
115            <http-method>PUT</http-method>
116            <http-method>POST</http-method>
117        </web-resource-collection>
118        <auth-constraint>
119            <role-name>tomcat</role-name>
120        </auth-constraint>
121    </security-constraint>
122    <security-constraint>
123        <display-name>ComponentRegistry SWF GET</display-name>
124        <web-resource-collection>
125            <web-resource-name>ComponentRegistry access</web-resource-name>
126            <description />
127            <url-pattern>/*</url-pattern>
128            <http-method>GET</http-method>
129        </web-resource-collection>
130        <auth-constraint>
131            <role-name>tomcat</role-name>
132        </auth-constraint>
133    </security-constraint>
134    <login-config>
135        <auth-method>BASIC</auth-method>
136    </login-config>
137    <security-role>
138        <description> The role that is required to log in to the Application
139        </description>
140        <role-name>tomcat</role-name>
141    </security-role>
142       
143    <welcome-file-list>
144        <welcome-file>index.jsp</welcome-file>
145    </welcome-file-list>
146       
147</web-app>
Note: See TracBrowser for help on using the repository browser.