|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
|
<display-name>OMeGa</display-name>
|
|
<listener>
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
</listener>
|
|
<servlet>
|
|
<!-- CXFServlet providing the IoTa Interface Endpoint -->
|
|
<servlet-name>OMeGa</servlet-name>
|
|
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
<servlet>
|
|
<!-- RHO servlet providing the JSON Interface -->
|
|
<servlet-name>RHO</servlet-name>
|
|
<servlet-class>fr.unicaen.iota.application.rest.RHO</servlet-class>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<!-- The rho servlet will be available at http://{url:port}/{context-path}/rho -->
|
|
<servlet-name>RHO</servlet-name>
|
|
<url-pattern>/rho</url-pattern>
|
|
</servlet-mapping>
|
|
<servlet-mapping>
|
|
<!-- The CXF Web service will be available at http://{url:port}/{context-path}/ -->
|
|
<servlet-name>OMeGa</servlet-name>
|
|
<url-pattern>/*</url-pattern>
|
|
</servlet-mapping>
|
|
<session-config>
|
|
<session-timeout>5</session-timeout>
|
|
</session-config>
|
|
<mime-mapping>
|
|
<extension>wsdl</extension>
|
|
<mime-type>text/xml</mime-type>
|
|
</mime-mapping>
|
|
<mime-mapping>
|
|
<extension>xsd</extension>
|
|
<mime-type>text/xml</mime-type>
|
|
</mime-mapping>
|
|
<welcome-file-list id="WelcomeFileList">
|
|
<welcome-file>index.html</welcome-file>
|
|
</welcome-file-list>
|
|
</web-app>
|