source: ComponentRegistry/trunk/ComponentRegistry/src/main/webapp/WEB-INF/web.xml @ 207

Last change on this file since 207 was 207, checked in by patdui, 14 years ago
  • addd Basic security in webapp
  • Added Delete functionality in registry
  • Made POST and DELETE use authorisation
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
4  <display-name>ComponentRegistry</display-name>
5  <description>Clarin Metadata Component Registry</description>
6
7<!--  <context-param>
8    <param-name>ShhaaConfigLocation</param-name>
9    <param-value>/WEB-INF/shhaa.xml</param-value>
10  </context-param> -->
11  <listener>
12    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
13  </listener>
14  <!--
15    filter> <filter-name>AAIFilter</filter-name> <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class> </filter>
16    <filter-mapping> <filter-name>AAIFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener>
17    <listener-class>de.mpg.aai.shhaa.config.ConfigContextListener</listener-class> </listener
18  -->
19
20  <servlet>
21    <servlet-name>ComponentRegistry Web Application</servlet-name>
22    <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
23    <init-param>
24      <param-name>com.sun.jersey.config.property.packages</param-name>
25      <param-value>clarin.cmdi.componentregistry.rest</param-value>
26    </init-param>
27    <load-on-startup>1</load-on-startup>
28  </servlet>
29  <servlet-mapping>
30    <servlet-name>ComponentRegistry Web Application</servlet-name>
31    <url-pattern>/rest/*</url-pattern>
32  </servlet-mapping>
33
34  <security-constraint>
35    <display-name>ComponentRegistry web service</display-name>
36    <web-resource-collection>
37      <web-resource-name>ComponentRegistry edit</web-resource-name>
38      <description></description>
39      <url-pattern>/rest/*</url-pattern>
40      <http-method>DELETE</http-method>
41      <http-method>PUT</http-method>
42      <http-method>POST</http-method>
43     <!--   <http-method>GET</http-method>-->
44    </web-resource-collection>
45    <auth-constraint>
46      <role-name>tomcat</role-name>
47    </auth-constraint>
48  </security-constraint>
49  <login-config>
50    <auth-method>BASIC</auth-method>
51  </login-config>
52  <security-role>
53    <description>
54      The role that is required to log in to the Manager Application
55    </description>
56    <role-name>tomcat</role-name>
57  </security-role>
58</web-app>
Note: See TracBrowser for help on using the repository browser.