OpenDaylight Controller functional modules.
[controller.git] / opendaylight / northbound / switchmanager / 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/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
4 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
5   version="2.4">
6   <servlet>
7     <servlet-name>JAXRSSwitchManager</servlet-name>
8     <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
9     <init-param>
10       <param-name>javax.ws.rs.Application</param-name>
11       <param-value>org.opendaylight.controller.switchmanager.northbound.SwitchNorthboundRSApplication</param-value>
12     </init-param>
13     <load-on-startup>1</load-on-startup>
14   </servlet>
15
16   <servlet-mapping>
17     <servlet-name>JAXRSSwitchManager</servlet-name>
18     <url-pattern>/*</url-pattern>
19   </servlet-mapping>
20
21 <!-- Spring Security related -->
22
23         <listener>
24         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
25         </listener>
26
27         <context-param>
28                 <param-name>contextConfigLocation</param-name>
29                 <param-value>/WEB-INF/spring/*.xml</param-value>
30         </context-param>
31
32         <filter>
33             <filter-name>springSecurityFilterChain</filter-name>
34             <filter-class>
35                 org.springframework.web.filter.DelegatingFilterProxy
36             </filter-class>
37         </filter>
38         
39         <filter-mapping>
40             <filter-name>springSecurityFilterChain</filter-name>
41             <url-pattern>/*</url-pattern>
42         </filter-mapping>
43 </web-app>