1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!-- Configuration file for ComponentRegistry in NON-SHIBBOLIZED context, |
---|
3 | i.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 | |
---|
68 | <!-- Enable CORS --> |
---|
69 | <!-- <filter> |
---|
70 | <filter-name>CorsFilter</filter-name> |
---|
71 | <filter-class>org.apache.catalina.filters.CorsFilter</filter-class> |
---|
72 | <init-param> |
---|
73 | <param-name>cors.allowed.methods</param-name> |
---|
74 | <param-value>GET, POST, PUT, DELETE, HEAD, OPTIONS</param-value> |
---|
75 | </init-param> |
---|
76 | </filter> |
---|
77 | <filter-mapping> |
---|
78 | <filter-name>CorsFilter</filter-name> |
---|
79 | <url-pattern>/*</url-pattern> |
---|
80 | </filter-mapping>--> |
---|
81 | |
---|
82 | <servlet> |
---|
83 | <servlet-name>ComponentRegistry Web Application</servlet-name> |
---|
84 | <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class> |
---|
85 | <init-param> |
---|
86 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
---|
87 | <param-value>com.sun.jersey.multipart.impl.FormDataMultiPartDispatchProvider</param-value> |
---|
88 | </init-param> |
---|
89 | <init-param> |
---|
90 | <param-name>com.sun.jersey.config.property.packages</param-name> |
---|
91 | <param-value>com.wordnik.swagger.jersey.listing</param-value> |
---|
92 | </init-param> |
---|
93 | <load-on-startup>1</load-on-startup> |
---|
94 | </servlet> |
---|
95 | <servlet-mapping> |
---|
96 | <servlet-name>ComponentRegistry Web Application</servlet-name> |
---|
97 | <url-pattern>/rest/*</url-pattern> |
---|
98 | </servlet-mapping> |
---|
99 | |
---|
100 | <servlet> |
---|
101 | <servlet-name>Concept Registry Servlet</servlet-name> |
---|
102 | <servlet-class>clarin.cmdi.componentregistry.servlet.ConceptRegistryServlet</servlet-class> |
---|
103 | <load-on-startup>1</load-on-startup> |
---|
104 | </servlet> |
---|
105 | <servlet-mapping> |
---|
106 | <servlet-name>Concept Registry Servlet</servlet-name> |
---|
107 | <url-pattern>/ccr/*</url-pattern> |
---|
108 | </servlet-mapping> |
---|
109 | |
---|
110 | <servlet> |
---|
111 | <servlet-name>JerseyJaxrsConfig</servlet-name> |
---|
112 | <servlet-class>com.wordnik.swagger.jersey.config.JerseyJaxrsConfig</servlet-class> |
---|
113 | <init-param> |
---|
114 | <param-name>api.version</param-name> |
---|
115 | <param-value>1.0.0</param-value> |
---|
116 | </init-param> |
---|
117 | <init-param> |
---|
118 | <param-name>swagger.api.basepath</param-name> |
---|
119 | <param-value>http://localhost:8080/ComponentRegistry/rest</param-value> |
---|
120 | </init-param> |
---|
121 | <load-on-startup>2</load-on-startup> |
---|
122 | </servlet> |
---|
123 | <security-constraint> |
---|
124 | <display-name>ComponentRegistry web service</display-name> |
---|
125 | <web-resource-collection> |
---|
126 | <web-resource-name>ComponentRegistry edit</web-resource-name> |
---|
127 | <description /> |
---|
128 | <url-pattern>/rest/*</url-pattern> |
---|
129 | <http-method>DELETE</http-method> |
---|
130 | <http-method>PUT</http-method> |
---|
131 | <http-method>POST</http-method> |
---|
132 | </web-resource-collection> |
---|
133 | <auth-constraint> |
---|
134 | <role-name>tomcat</role-name> |
---|
135 | </auth-constraint> |
---|
136 | </security-constraint> |
---|
137 | <login-config> |
---|
138 | <auth-method>BASIC</auth-method> |
---|
139 | </login-config> |
---|
140 | <security-role> |
---|
141 | <description> The role that is required to log in to the Application |
---|
142 | </description> |
---|
143 | <role-name>tomcat</role-name> |
---|
144 | </security-role> |
---|
145 | |
---|
146 | <welcome-file-list> |
---|
147 | <welcome-file>index.html</welcome-file> |
---|
148 | </welcome-file-list> |
---|
149 | |
---|
150 | </web-app> |
---|