1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
3 | xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" |
---|
4 | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" |
---|
5 | id="WebApp_ID" version="2.5"> |
---|
6 | <display-name>CLARIN Virtual Collection Registry</display-name> |
---|
7 | |
---|
8 | <listener> |
---|
9 | <listener-class>eu.clarin.cmdi.virtualcollectionregistry.rest.ContextListener</listener-class> |
---|
10 | </listener> |
---|
11 | |
---|
12 | <filter> |
---|
13 | <filter-name>PersistenceFilter</filter-name> |
---|
14 | <filter-class>eu.clarin.cmdi.virtualcollectionregistry.rest.PersistenceFilter</filter-class> |
---|
15 | </filter> |
---|
16 | |
---|
17 | <filter-mapping> |
---|
18 | <filter-name>PersistenceFilter</filter-name> |
---|
19 | <servlet-name>REST-Web-Service</servlet-name> |
---|
20 | </filter-mapping> |
---|
21 | |
---|
22 | <filter> |
---|
23 | <filter-name>CharacterEncodingFilter</filter-name> |
---|
24 | <filter-class>eu.clarin.cmdi.virtualcollectionregistry.gui.CharacterEncodingFilter</filter-class> |
---|
25 | </filter> |
---|
26 | |
---|
27 | <filter-mapping> |
---|
28 | <filter-name>CharacterEncodingFilter</filter-name> |
---|
29 | <url-pattern>/app/*</url-pattern> |
---|
30 | </filter-mapping> |
---|
31 | |
---|
32 | <filter> |
---|
33 | <filter-name>VirtualCollectionRegistryApplication</filter-name> |
---|
34 | <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> |
---|
35 | <init-param> |
---|
36 | <param-name>applicationClassName</param-name> |
---|
37 | <param-value>eu.clarin.cmdi.virtualcollectionregistry.gui.Application</param-value> |
---|
38 | </init-param> |
---|
39 | <init-param> |
---|
40 | <param-name>configuration</param-name> |
---|
41 | <!-- |
---|
42 | <param-value>deployment</param-value> |
---|
43 | --> |
---|
44 | <param-value>development</param-value> |
---|
45 | </init-param> |
---|
46 | </filter> |
---|
47 | |
---|
48 | <filter-mapping> |
---|
49 | <filter-name>VirtualCollectionRegistryApplication</filter-name> |
---|
50 | <url-pattern>/app/*</url-pattern> |
---|
51 | </filter-mapping> |
---|
52 | |
---|
53 | <servlet> |
---|
54 | <display-name>Virtual Collection Registry REST web service</display-name> |
---|
55 | <servlet-name>REST-Web-Service</servlet-name> |
---|
56 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
---|
57 | <init-param> |
---|
58 | <param-name>com.sun.jersey.config.property.packages</param-name> |
---|
59 | <param-value>eu.clarin.cmdi.virtualcollectionregistry.rest</param-value> |
---|
60 | </init-param> |
---|
61 | <load-on-startup>1</load-on-startup> |
---|
62 | </servlet> |
---|
63 | |
---|
64 | <servlet-mapping> |
---|
65 | <servlet-name>REST-Web-Service</servlet-name> |
---|
66 | <url-pattern>/service/*</url-pattern> |
---|
67 | </servlet-mapping> |
---|
68 | |
---|
69 | <servlet> |
---|
70 | <display-name>Virtual Collection Registry OAI-PMH Provider</display-name> |
---|
71 | <servlet-name>OAI-PMH-Provider</servlet-name> |
---|
72 | <servlet-class>eu.clarin.cmdi.oai.provider.ProviderServlet</servlet-class> |
---|
73 | <load-on-startup>2</load-on-startup> |
---|
74 | </servlet> |
---|
75 | |
---|
76 | <servlet-mapping> |
---|
77 | <servlet-name>OAI-PMH-Provider</servlet-name> |
---|
78 | <url-pattern>/oai</url-pattern> |
---|
79 | </servlet-mapping> |
---|
80 | |
---|
81 | <resource-ref> |
---|
82 | <description>Virtual Collection Datastore Connection</description> |
---|
83 | <res-ref-name>jdbc/VirtualCollectionStore</res-ref-name> |
---|
84 | <res-type>javax.sql.DataSource</res-type> |
---|
85 | <res-auth>Container</res-auth> |
---|
86 | </resource-ref> |
---|
87 | |
---|
88 | <!-- |
---|
89 | Security constraints; authentication mechanism must be configured |
---|
90 | by means of a security realm (by default the UserDatabaseRealm is |
---|
91 | configured in Tomcat, which uses the tomcat-users.xml file) |
---|
92 | --> |
---|
93 | <security-constraint> |
---|
94 | <display-name>REST-Web-Service</display-name> |
---|
95 | <web-resource-collection> |
---|
96 | <web-resource-name>REST-Web-Service</web-resource-name> |
---|
97 | <description></description> |
---|
98 | <url-pattern>/service/virtualcollection</url-pattern> |
---|
99 | <http-method>POST</http-method> |
---|
100 | </web-resource-collection> |
---|
101 | <web-resource-collection> |
---|
102 | <web-resource-name>REST-Web-Service</web-resource-name> |
---|
103 | <description></description> |
---|
104 | <url-pattern>/service/virtualcollection/*</url-pattern> |
---|
105 | <http-method>DELETE</http-method> |
---|
106 | <http-method>POST</http-method> |
---|
107 | <http-method>PUT</http-method> |
---|
108 | </web-resource-collection> |
---|
109 | <web-resource-collection> |
---|
110 | <web-resource-name>REST-Web-Service</web-resource-name> |
---|
111 | <description></description> |
---|
112 | <url-pattern>/service/my-virtualcollections</url-pattern> |
---|
113 | <http-method>GET</http-method> |
---|
114 | </web-resource-collection> |
---|
115 | <web-resource-collection> |
---|
116 | <web-resource-name>VirtualCollectionRegistryApplication</web-resource-name> |
---|
117 | <description></description> |
---|
118 | <url-pattern>/app/*</url-pattern> |
---|
119 | <http-method>GET</http-method> |
---|
120 | </web-resource-collection> |
---|
121 | <auth-constraint> |
---|
122 | <role-name>*</role-name> |
---|
123 | </auth-constraint> |
---|
124 | </security-constraint> |
---|
125 | |
---|
126 | <login-config> |
---|
127 | <auth-method>BASIC</auth-method> |
---|
128 | </login-config> |
---|
129 | |
---|
130 | <security-role> |
---|
131 | <role-name>*</role-name> |
---|
132 | </security-role> |
---|
133 | |
---|
134 | <mime-mapping> |
---|
135 | <extension>xsd</extension> |
---|
136 | <mime-type>application/xml</mime-type> |
---|
137 | </mime-mapping> |
---|
138 | |
---|
139 | <welcome-file-list> |
---|
140 | <welcome-file>index.jsp</welcome-file> |
---|
141 | </welcome-file-list> |
---|
142 | </web-app> |
---|