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 | <filter> |
---|
22 | <filter-name>characterEncodingFilter</filter-name> |
---|
23 | <filter-class>clarin.cmdi.componentregistry.servlet.CharacterEncodingFilter |
---|
24 | </filter-class> |
---|
25 | <init-param> |
---|
26 | <param-name>encoding</param-name> |
---|
27 | <param-value>UTF-8</param-value> |
---|
28 | </init-param> |
---|
29 | </filter> |
---|
30 | <filter> |
---|
31 | <filter-name>NoCachingFilter</filter-name> |
---|
32 | <filter-class>clarin.cmdi.componentregistry.servlet.DontCacheFilter</filter-class> |
---|
33 | </filter> |
---|
34 | <filter-mapping> |
---|
35 | <filter-name>NoCachingFilter</filter-name> |
---|
36 | <url-pattern>/rest/registry/*</url-pattern> |
---|
37 | </filter-mapping> |
---|
38 | <filter-mapping> |
---|
39 | <filter-name>characterEncodingFilter</filter-name> |
---|
40 | <url-pattern>/*</url-pattern> |
---|
41 | </filter-mapping> |
---|
42 | <filter> |
---|
43 | <filter-name>wicket.componentregistry</filter-name> |
---|
44 | <filter-class>org.apache.wicket.protocol.http.WicketFilter |
---|
45 | </filter-class> |
---|
46 | <init-param> |
---|
47 | <param-name>applicationClassName</param-name> |
---|
48 | <param-value>clarin.cmdi.componentregistry.frontend.AdminApp |
---|
49 | </param-value> |
---|
50 | </init-param> |
---|
51 | <init-param> |
---|
52 | <param-name>configuration</param-name> |
---|
53 | <!-- <param-value>development</param-value> --> |
---|
54 | <param-value>deployment</param-value> |
---|
55 | <!-- you can override with -Dwicket.configuration=development --> |
---|
56 | </init-param> |
---|
57 | </filter> |
---|
58 | <filter-mapping> |
---|
59 | <filter-name>wicket.componentregistry</filter-name> |
---|
60 | <url-pattern>/admin/*</url-pattern> |
---|
61 | </filter-mapping> |
---|
62 | <servlet> |
---|
63 | <servlet-name>ComponentRegistry Web Application</servlet-name> |
---|
64 | <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class> |
---|
65 | <init-param> |
---|
66 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
---|
67 | <param-value>com.sun.jersey.multipart.impl.FormDataMultiPartDispatchProvider</param-value> |
---|
68 | </init-param> |
---|
69 | <init-param> |
---|
70 | <param-name>com.sun.jersey.config.property.packages</param-name> |
---|
71 | <param-value>com.wordnik.swagger.jersey.listing</param-value> |
---|
72 | </init-param> |
---|
73 | <load-on-startup>1</load-on-startup> |
---|
74 | </servlet> |
---|
75 | <servlet-mapping> |
---|
76 | <servlet-name>ComponentRegistry Web Application</servlet-name> |
---|
77 | <url-pattern>/rest/*</url-pattern> |
---|
78 | </servlet-mapping> |
---|
79 | |
---|
80 | <servlet> |
---|
81 | <servlet-name>Concept Registry Servlet</servlet-name> |
---|
82 | <servlet-class>clarin.cmdi.componentregistry.servlet.ConceptRegistryServlet</servlet-class> |
---|
83 | <load-on-startup>1</load-on-startup> |
---|
84 | </servlet> |
---|
85 | <servlet-mapping> |
---|
86 | <servlet-name>Concept Registry Servlet</servlet-name> |
---|
87 | <url-pattern>/ccr/*</url-pattern> |
---|
88 | </servlet-mapping> |
---|
89 | |
---|
90 | <servlet> |
---|
91 | <servlet-name>JerseyJaxrsConfig</servlet-name> |
---|
92 | <servlet-class>com.wordnik.swagger.jersey.config.JerseyJaxrsConfig</servlet-class> |
---|
93 | <init-param> |
---|
94 | <param-name>api.version</param-name> |
---|
95 | <param-value>1.0.0</param-value> |
---|
96 | </init-param> |
---|
97 | <init-param> |
---|
98 | <param-name>swagger.api.basepath</param-name> |
---|
99 | <param-value>http://localhost:8080/ComponentRegistry/rest</param-value> |
---|
100 | </init-param> |
---|
101 | <load-on-startup>2</load-on-startup> |
---|
102 | </servlet> |
---|
103 | <security-constraint> |
---|
104 | <display-name>ComponentRegistry web service</display-name> |
---|
105 | <web-resource-collection> |
---|
106 | <web-resource-name>ComponentRegistry edit</web-resource-name> |
---|
107 | <description /> |
---|
108 | <url-pattern>/rest/*</url-pattern> |
---|
109 | <http-method>DELETE</http-method> |
---|
110 | <http-method>PUT</http-method> |
---|
111 | <http-method>POST</http-method> |
---|
112 | </web-resource-collection> |
---|
113 | <auth-constraint> |
---|
114 | <role-name>tomcat</role-name> |
---|
115 | </auth-constraint> |
---|
116 | </security-constraint> |
---|
117 | <security-constraint> |
---|
118 | <display-name>ComponentRegistry SWF GET</display-name> |
---|
119 | <web-resource-collection> |
---|
120 | <web-resource-name>ComponentRegistry access</web-resource-name> |
---|
121 | <description /> |
---|
122 | <url-pattern>/*</url-pattern> |
---|
123 | <http-method>GET</http-method> |
---|
124 | </web-resource-collection> |
---|
125 | <auth-constraint> |
---|
126 | <role-name>tomcat</role-name> |
---|
127 | </auth-constraint> |
---|
128 | </security-constraint> |
---|
129 | <login-config> |
---|
130 | <auth-method>BASIC</auth-method> |
---|
131 | </login-config> |
---|
132 | <security-role> |
---|
133 | <description> The role that is required to log in to the Application |
---|
134 | </description> |
---|
135 | <role-name>tomcat</role-name> |
---|
136 | </security-role> |
---|
137 | |
---|
138 | <welcome-file-list> |
---|
139 | <welcome-file>index.jsp</welcome-file> |
---|
140 | </welcome-file-list> |
---|
141 | |
---|
142 | </web-app> |
---|