root/OMeGa/OMeGa/src/main/webapp/WEB-INF/web.xml @ bf9c3717
| bf9c3717 | Rémy Ménard | <?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>
|
|||
<security-constraint>
|
|||
<web-resource-collection>
|
|||
<web-resource-name>OMeGaSecure</web-resource-name>
|
|||
<url-pattern>/*</url-pattern>
|
|||
<http-method>GET</http-method>
|
|||
<http-method>POST</http-method>
|
|||
</web-resource-collection>
|
|||
<auth-constraint>
|
|||
<role-name>omega_user</role-name>
|
|||
</auth-constraint>
|
|||
<user-data-constraint>
|
|||
<transporting-guarantee>CONFIDENTIAL</transporting-guarantee>
|
|||
</user-data-constraint>
|
|||
</security-constraint>
|
|||
<login-config>
|
|||
<auth-method>CLIENT-CERT</auth-method>
|
|||
</login-config>
|
|||
<security-role>
|
|||
<role-name>omega_user</role-name>
|
|||
</security-role>
|
|||
</web-app>
|