0d143739c3ffd54dfd4f0b8c7ddbc3672713cf0f
[controller.git] / opendaylight / web / topology / src / main / resources / WEB-INF / web.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
4         version="3.0">
5         <security-constraint>
6                 <web-resource-collection>
7                         <web-resource-name>free access</web-resource-name>
8                         <url-pattern>/js/*</url-pattern>
9                         <url-pattern>/images/*</url-pattern>
10                         <url-pattern>/css/*</url-pattern>
11                         <url-pattern>/favicon.ico</url-pattern>
12                 </web-resource-collection>
13         </security-constraint>
14
15         <security-constraint>
16                 <display-name>TopologyApp</display-name>
17                 <web-resource-collection>
18                         <web-resource-name>TopoGUI</web-resource-name>
19                         <url-pattern>/*</url-pattern>
20                 </web-resource-collection>
21                 <auth-constraint>
22                         <role-name>System-Admin</role-name>
23                         <role-name>Network-Admin</role-name>
24                         <role-name>Network-Operator</role-name>
25                         <role-name>Container-User</role-name>
26                 </auth-constraint>
27         </security-constraint>
28         <security-role>
29                 <role-name>System-Admin</role-name>
30         </security-role>
31         <security-role>
32                 <role-name>Network-Admin</role-name>
33         </security-role>
34         <security-role>
35                 <role-name>Network-Operator</role-name>
36         </security-role>
37         <security-role>
38                 <role-name>Container-User</role-name>
39         </security-role>
40
41         <login-config>
42                 <auth-method>FORM</auth-method>
43                 <form-login-config>
44                         <form-login-page>/WEB-INF/jsp/login.jsp</form-login-page>
45                         <form-error-page>/WEB-INF/jsp/error.jsp</form-error-page>
46                 </form-login-config>
47         </login-config>
48
49         <servlet>
50                 <servlet-name>Topology</servlet-name>
51                 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
52                 <load-on-startup>1</load-on-startup>
53         </servlet>
54
55
56
57         <servlet-mapping>
58                 <servlet-name>Topology</servlet-name>
59                 <url-pattern>/</url-pattern>
60         </servlet-mapping>
61
62         <listener>
63                 <listener-class>org.opendaylight.controller.web.ControllerUISessionManager</listener-class>
64         </listener>
65
66         <session-config>
67                 <cookie-config>
68                         <path>/</path>
69                 </cookie-config>
70         </session-config>
71
72
73 </web-app>