1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | |
---|
3 | <!-- |
---|
4 | Configuration file for ComponentRegistry in shibbolized context, which |
---|
5 | any production environment should be. |
---|
6 | --> |
---|
7 | |
---|
8 | <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
9 | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> |
---|
10 | <display-name>ComponentRegistry</display-name> |
---|
11 | <description>Clarin Metadata Component Registry</description> |
---|
12 | |
---|
13 | |
---|
14 | <context-param> |
---|
15 | <param-name>ShhaaConfigLocation</param-name> |
---|
16 | <param-value>/WEB-INF/shhaa.xml</param-value> |
---|
17 | </context-param> |
---|
18 | <context-param> |
---|
19 | <param-name>contextConfigLocation</param-name> |
---|
20 | <param-value>classpath:spring-config/applicationContext.xml,classpath:spring-config/container-environment.xml |
---|
21 | </param-value> |
---|
22 | </context-param> |
---|
23 | |
---|
24 | <listener> |
---|
25 | <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
---|
26 | </listener> |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | <filter> |
---|
31 | <filter-name>characterEncodingFilter</filter-name> |
---|
32 | <filter-class>clarin.cmdi.componentregistry.servlet.CharacterEncodingFilter</filter-class> |
---|
33 | <init-param> |
---|
34 | <param-name>encoding</param-name> |
---|
35 | <param-value>UTF-8</param-value> |
---|
36 | </init-param> |
---|
37 | </filter> |
---|
38 | <filter> |
---|
39 | <filter-name>NoCachingFilter</filter-name> |
---|
40 | <filter-class>clarin.cmdi.componentregistry.servlet.DontCacheFilter</filter-class> |
---|
41 | </filter> |
---|
42 | <filter-mapping> |
---|
43 | <filter-name>NoCachingFilter</filter-name> |
---|
44 | <url-pattern>/rest/registry/*</url-pattern> |
---|
45 | </filter-mapping> |
---|
46 | |
---|
47 | |
---|
48 | <filter-mapping> |
---|
49 | <filter-name>characterEncodingFilter</filter-name> |
---|
50 | <url-pattern>/*</url-pattern> |
---|
51 | </filter-mapping> |
---|
52 | |
---|
53 | <!-- Make sure this one is declared before the wicket filter, the order matters. Shibboleth should trigger the login, before continuing with the wicket filter.--> |
---|
54 | <filter> |
---|
55 | <filter-name>AAIFilter</filter-name> |
---|
56 | <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class> |
---|
57 | </filter> |
---|
58 | <filter-mapping> |
---|
59 | <filter-name>AAIFilter</filter-name> |
---|
60 | <url-pattern>/*</url-pattern> |
---|
61 | </filter-mapping> |
---|
62 | |
---|
63 | <listener> |
---|
64 | <listener-class>de.mpg.aai.shhaa.config.ConfigContextListener</listener-class> |
---|
65 | </listener> |
---|
66 | |
---|
67 | <filter> |
---|
68 | <filter-name>wicket.componentregistry</filter-name> |
---|
69 | <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> |
---|
70 | <init-param> |
---|
71 | <param-name>applicationClassName</param-name> |
---|
72 | <param-value>clarin.cmdi.componentregistry.frontend.AdminApp</param-value> |
---|
73 | </init-param> |
---|
74 | <init-param> |
---|
75 | <param-name>configuration</param-name> |
---|
76 | <!-- <param-value>development</param-value>--> |
---|
77 | <param-value>deployment</param-value> |
---|
78 | <!-- you can override with -Dwicket.configuration=development --> |
---|
79 | </init-param> |
---|
80 | </filter> |
---|
81 | <filter-mapping> |
---|
82 | <filter-name>wicket.componentregistry</filter-name> |
---|
83 | <url-pattern>/admin/*</url-pattern> |
---|
84 | </filter-mapping> |
---|
85 | <servlet> |
---|
86 | <servlet-name>ComponentRegistry Web Application</servlet-name> |
---|
87 | <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class> |
---|
88 | <init-param> |
---|
89 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
---|
90 | <param-value>com.sun.jersey.multipart.impl.FormDataMultiPartDispatchProvider</param-value> |
---|
91 | </init-param> |
---|
92 | <init-param> |
---|
93 | <param-name>com.sun.jersey.config.property.packages</param-name> |
---|
94 | <param-value>com.wordnik.swagger.jersey.listing</param-value> |
---|
95 | </init-param> |
---|
96 | <load-on-startup>1</load-on-startup> |
---|
97 | </servlet> |
---|
98 | <servlet-mapping> |
---|
99 | <servlet-name>ComponentRegistry Web Application</servlet-name> |
---|
100 | <url-pattern>/rest/*</url-pattern> |
---|
101 | </servlet-mapping> |
---|
102 | |
---|
103 | <servlet> |
---|
104 | <servlet-name>Concept Registry Servlet</servlet-name> |
---|
105 | <servlet-class>clarin.cmdi.componentregistry.servlet.ConceptRegistryServlet</servlet-class> |
---|
106 | <load-on-startup>1</load-on-startup> |
---|
107 | </servlet> |
---|
108 | <servlet-mapping> |
---|
109 | <servlet-name>Concept Registry Servlet</servlet-name> |
---|
110 | <url-pattern>/ccr/*</url-pattern> |
---|
111 | </servlet-mapping> |
---|
112 | <servlet> |
---|
113 | <servlet-name>JerseyJaxrsConfig</servlet-name> |
---|
114 | <servlet-class>com.wordnik.swagger.jersey.config.JerseyJaxrsConfig</servlet-class> |
---|
115 | <init-param> |
---|
116 | <param-name>api.version</param-name> |
---|
117 | <param-value>1.0.0</param-value> |
---|
118 | </init-param> |
---|
119 | <init-param> |
---|
120 | <param-name>swagger.api.basepath</param-name> |
---|
121 | <param-value>https://catalog.clarin.eu/ds/ComponentRegistry/rest</param-value> |
---|
122 | </init-param> |
---|
123 | <load-on-startup>2</load-on-startup> |
---|
124 | </servlet> |
---|
125 | |
---|
126 | </web-app> |
---|