added back in Producer.Content.Batchsize
[mir.git] / etc / web.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2
3 <!DOCTYPE web-app
4     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
5     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
6
7 <web-app>
8     <servlet>
9         <servlet-name>
10             Mir
11         </servlet-name>
12         <servlet-class>
13             Mir
14         </servlet-class>
15
16         <init-param>
17             <param-name>Config</param-name>
18             <param-value>config</param-value>
19         </init-param>
20         <init-param>
21             <param-name>xml-config</param-name>
22             <param-value>/home/heckmann/mir/Mir/server.xml</param-value>
23         </init-param>
24
25     </servlet>
26
27     <servlet>
28         <servlet-name>
29             OpenMir
30         </servlet-name>
31         <servlet-class>
32             OpenMir
33         </servlet-class>
34
35         <init-param>
36             <param-name>Config</param-name>
37             <param-value>config</param-value>
38         </init-param>
39         <init-param>
40             <param-name>xml-config</param-name>
41             <param-value>/home/heckmann/mir/Mir/server.xml</param-value>
42         </init-param>
43
44     </servlet>
45
46     <servlet-mapping>
47         <servlet-name>
48             Mir
49         </servlet-name>
50         <url-pattern>
51             /Mir
52         </url-pattern>
53     </servlet-mapping>
54
55     <servlet-mapping>
56         <servlet-name>OpenMir</servlet-name>
57         <url-pattern>/OpenMir</url-pattern>
58     </servlet-mapping>
59
60
61     <taglib>
62         <taglib-uri>
63            http://java.apache.org/tomcat/examples-taglib
64         </taglib-uri>
65         <taglib-location>
66            /WEB-INF/jsp/example-taglib.tld
67         </taglib-location>
68     </taglib>
69
70     <security-constraint>
71       <web-resource-collection>
72          <web-resource-name>Protected Area</web-resource-name>
73          <!-- Define the context-relative URL(s) to be protected -->
74          <url-pattern>/jsp/security/protected/*</url-pattern>
75          <!-- If you list http methods, only those methods are protected -->
76          <http-method>DELETE</http-method>
77          <http-method>GET</http-method>
78          <http-method>POST</http-method>
79          <http-method>PUT</http-method>
80       </web-resource-collection>
81       <auth-constraint>
82          <!-- Anyone with one of the listed roles may access this area -->
83          <role-name>tomcat</role-name>
84          <role-name>role1</role-name>
85       </auth-constraint>
86     </security-constraint>
87
88     <!-- Default login configuration uses BASIC authentication -->
89     <!--
90     <login-config>
91       <auth-method>BASIC</auth-method>
92       <realm-name>Example Basic Authentication Area</realm-name>
93     </login-config>
94     -->
95
96     <!-- Form-based login is enabled by default.  If you wish to
97          try Basic authentication, comment out the <login-config>
98          section below and uncomment the one above. -->
99     <login-config>
100       <auth-method>FORM</auth-method>
101       <realm-name>Example Form-Based Authentication Area</realm-name>
102       <form-login-config>
103         <form-login-page>/jsp/security/login/login.jsp</form-login-page>
104         <form-error-page>/jsp/security/login/error.jsp</form-error-page>
105       </form-login-config>
106     </login-config>
107
108 </web-app>