source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/webapp/WEB-INF/web-shib.xml @ 5508

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

All representations of a VC are retrieved at the same URL that provides internal XML, JSON, CMDI, or a web UI redirect determined through content negotiation. Added a filter that allows for 'content negotation' through URL extension
Refs #604

TODO: Default to CMDI
TODO: PID reference

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 5.3 KB
Line 
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    <!-- Shibboleth -->
9
10    <context-param>
11        <param-name>ShhaaConfigLocation</param-name>
12        <param-value>/WEB-INF/shhaa.xml</param-value>
13    </context-param>
14   
15    <!-- Make sure this one is declared before the wicket filter, the order matters. Shibboleth should trigger the login, before continuing with the wicket filter.-->
16    <filter>
17        <filter-name>AAIFilter</filter-name>
18        <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class>
19    </filter>
20    <filter-mapping>
21        <filter-name>AAIFilter</filter-name>
22        <url-pattern>/*</url-pattern>
23    </filter-mapping>
24   
25    <!-- Spring -->
26   
27    <listener>
28        <listener-class>
29            org.springframework.web.context.ContextLoaderListener
30        </listener-class>
31    </listener>
32 
33    <context-param>
34        <param-name>spring.profiles.active</param-name>
35        <param-value>vcr.pid.dummy</param-value>
36        <!--<param-value>vcr.pid.gwdg</param-value>-->
37    </context-param>
38   
39    <!-- Persistence -->
40
41    <filter>
42        <filter-name>PersistenceFilter</filter-name>
43        <filter-class>eu.clarin.cmdi.virtualcollectionregistry.rest.PersistenceFilter</filter-class>
44    </filter>
45
46    <filter-mapping>
47        <filter-name>PersistenceFilter</filter-name>
48        <servlet-name>REST-Web-Service</servlet-name>
49    </filter-mapping>
50   
51    <filter-mapping>
52        <filter-name>PersistenceFilter</filter-name>
53        <url-pattern>/app/*</url-pattern>
54    </filter-mapping>
55
56    <filter>
57        <filter-name>CharacterEncodingFilter</filter-name>
58        <filter-class>eu.clarin.cmdi.virtualcollectionregistry.gui.CharacterEncodingFilter</filter-class>
59    </filter>
60
61    <filter-mapping>
62        <filter-name>CharacterEncodingFilter</filter-name>
63        <url-pattern>/app/*</url-pattern>
64    </filter-mapping>
65
66    <filter>
67        <filter-name>VirtualCollectionRegistryApplication</filter-name>
68        <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
69        <init-param>
70            <param-name>applicationFactoryClassName</param-name>
71            <param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value>
72        </init-param>
73        <init-param>
74            <param-name>configuration</param-name>
75            <!--
76           <param-value>deployment</param-value>
77            -->
78            <param-value>development</param-value>
79        </init-param>
80    </filter>
81
82    <filter-mapping>
83        <filter-name>VirtualCollectionRegistryApplication</filter-name>
84        <url-pattern>/app/*</url-pattern>
85    </filter-mapping>
86
87    <servlet>
88        <display-name>Virtual Collection Registry REST web service</display-name>
89        <servlet-name>REST-Web-Service</servlet-name>
90        <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
91        <init-param>
92            <param-name>com.sun.jersey.config.property.packages</param-name>
93            <param-value>eu.clarin.cmdi.virtualcollectionregistry.rest</param-value>
94        </init-param>
95        <init-param>
96            <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
97            <param-value>eu.clarin.cmdi.virtualcollectionregistry.rest.VirtualCollectionMediaTypeFilter</param-value>
98        </init-param>
99        <load-on-startup>1</load-on-startup>
100    </servlet>
101
102    <servlet-mapping>
103        <servlet-name>REST-Web-Service</servlet-name>
104        <url-pattern>/service/*</url-pattern>
105    </servlet-mapping>
106
107    <servlet>
108        <display-name>Virtual Collection Registry OAI-PMH Provider</display-name>
109        <servlet-name>OAI-PMH-Provider</servlet-name>
110        <servlet-class>eu.clarin.cmdi.oai.provider.ProviderServlet</servlet-class>
111        <load-on-startup>2</load-on-startup>
112    </servlet>
113
114    <servlet-mapping>
115        <servlet-name>OAI-PMH-Provider</servlet-name>
116        <url-pattern>/oai</url-pattern>
117    </servlet-mapping>
118
119    <resource-ref>
120        <description>Virtual Collection Datastore Connection</description>
121        <res-ref-name>jdbc/VirtualCollectionStore</res-ref-name>
122        <res-type>javax.sql.DataSource</res-type>
123        <res-auth>Container</res-auth>
124    </resource-ref>
125
126    <mime-mapping>
127        <extension>xsd</extension>
128        <mime-type>application/xml</mime-type>
129    </mime-mapping>
130
131    <welcome-file-list>
132        <welcome-file>index.jsp</welcome-file>
133    </welcome-file-list>
134   
135    <!--
136        Enable JavaMelody for application monitoring
137        More info at https://code.google.com/p/javamelody/
138    -->
139   
140    <filter>
141        <filter-name>monitoring</filter-name>
142        <filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
143    </filter>
144    <filter-mapping>
145        <filter-name>monitoring</filter-name>
146        <url-pattern>/*</url-pattern>
147    </filter-mapping>
148    <listener>
149        <listener-class>net.bull.javamelody.SessionListener</listener-class>
150    </listener>
151</web-app>
Note: See TracBrowser for help on using the repository browser.