OpenDaylight Controller functional modules.
[controller.git] / opendaylight / northbound / flowprogrammer / src / main / resources / WEB-INF / web.xml
diff --git a/opendaylight/northbound/flowprogrammer/src/main/resources/WEB-INF/web.xml b/opendaylight/northbound/flowprogrammer/src/main/resources/WEB-INF/web.xml
new file mode 100644 (file)
index 0000000..df8cba1
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+  version="2.4">
+  
+       <servlet>
+         <servlet-name>JAXRSFlowProgrammer</servlet-name>
+         <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
+         <init-param>
+           <param-name>javax.ws.rs.Application</param-name>
+           <param-value>org.opendaylight.controller.flowprogrammer.northbound.FlowProgrammerNorthboundRSApplication</param-value>
+         </init-param>
+         <load-on-startup>1</load-on-startup>
+       </servlet>
+       
+       <servlet-mapping>
+         <servlet-name>JAXRSFlowProgrammer</servlet-name>
+         <url-pattern>/*</url-pattern>
+       </servlet-mapping>
+       
+<!-- Spring Security related -->
+
+       <listener>
+       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+       </listener>
+
+       <context-param>
+               <param-name>contextConfigLocation</param-name>
+               <param-value>/WEB-INF/spring/*.xml</param-value>
+       </context-param>
+
+       <filter>
+           <filter-name>springSecurityFilterChain</filter-name>
+           <filter-class>
+               org.springframework.web.filter.DelegatingFilterProxy
+           </filter-class>
+       </filter>
+       
+       <filter-mapping>
+           <filter-name>springSecurityFilterChain</filter-name>
+           <url-pattern>/*</url-pattern>
+       </filter-mapping>
+</web-app>
\ No newline at end of file