web.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="3.0"
  3. xmlns="http://java.sun.com/xml/ns/javaee"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  6. http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true">
  7. <filter>
  8. <filter-name>springRequestFilter</filter-name>
  9. <filter-class>org.springframework.web.filter.RequestContextFilter</filter-class>
  10. </filter>
  11. <listener>
  12. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  13. </listener>
  14. <!-- applies log4j configuration -->
  15. <listener>
  16. <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  17. </listener>
  18. <!-- <resource-env-ref> -->
  19. <!-- <resource-env-ref-name>jdbc/sicura</resource-env-ref-name> -->
  20. <!-- <resource-env-ref-type>javax.sql.DataSource</resource-env-ref-type> -->
  21. <!-- </resource-env-ref> -->
  22. <resource-ref>
  23. <description>sicura</description>
  24. <res-ref-name>jdbc/sicura</res-ref-name>
  25. <res-type>javax.sql.DataSource</res-type>
  26. <res-auth>Container</res-auth>
  27. <res-sharing-scope>Shareable</res-sharing-scope>
  28. </resource-ref>
  29. <servlet>
  30. <servlet-name>DispatcherServlet</servlet-name>
  31. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  32. <load-on-startup>1</load-on-startup>
  33. </servlet>
  34. <servlet-mapping>
  35. <servlet-name>DispatcherServlet</servlet-name>
  36. <url-pattern>*.html</url-pattern>
  37. </servlet-mapping>
  38. <servlet-mapping>
  39. <servlet-name>DispatcherServlet</servlet-name>
  40. <url-pattern>*.do</url-pattern>
  41. </servlet-mapping>
  42. <servlet-mapping>
  43. <servlet-name>DispatcherServlet</servlet-name>
  44. <url-pattern>/rest/*</url-pattern>
  45. </servlet-mapping>
  46. <servlet-mapping>
  47. <servlet-name>DispatcherServlet</servlet-name>
  48. <url-pattern>/grid/*</url-pattern>
  49. </servlet-mapping>
  50. <display-name>sicura</display-name>
  51. <context-param>
  52. <param-name>log4jConfigLocation</param-name>
  53. <param-value>/WEB-INF/properties/log4j.properties</param-value>
  54. </context-param>
  55. <context-param>
  56. <param-name>contextConfigLocation</param-name>
  57. <param-value>classpath*:WEB-INF/applicationContext*.xml</param-value>
  58. </context-param>
  59. <context-param>
  60. <param-name>contextConfigLocation</param-name>
  61. <param-value>
  62. /WEB-INF/applicationContext.xml
  63. /WEB-INF/DispatcherServlet-servlet.xml
  64. </param-value>
  65. </context-param>
  66. <welcome-file-list>
  67. <welcome-file>index.jsp</welcome-file>
  68. <welcome-file>home.do</welcome-file>
  69. <welcome-file>default.html</welcome-file>
  70. <welcome-file>default.htm</welcome-file>
  71. <welcome-file>default.jsp</welcome-file>
  72. </welcome-file-list>
  73. <security-constraint>
  74. <display-name>Sicura</display-name>
  75. <web-resource-collection>
  76.         <web-resource-name>Sicura</web-resource-name>
  77. <url-pattern>/*</url-pattern>
  78. <http-method>GET</http-method>
  79. <http-method>PUT</http-method>
  80. <http-method>POST</http-method>
  81. <http-method>DELETE</http-method>
  82. </web-resource-collection>
  83. <auth-constraint>
  84.         <role-name>SicuraWeb_TR</role-name>
  85.             <role-name>SicuraWeb_DF</role-name>
  86.             <role-name>SicuraWeb_AS</role-name>
  87.             <role-name>SicuraWeb_GI</role-name>
  88. <role-name>SicuraWeb_VI</role-name>
  89. </auth-constraint>
  90. </security-constraint>
  91. <security-role>
  92. <description>Tesoriere responsabile</description>
  93.         <role-name>SicuraWeb_TR</role-name>
  94. </security-role>
  95. <security-role>
  96. <description>Delegato firma</description>
  97. <role-name>SicuraWeb_DF</role-name>
  98. </security-role>
  99. <security-role>
  100. <description>Amministratore sistema</description>
  101. <role-name>SicuraWeb_AS</role-name>
  102. </security-role>
  103. <security-role>
  104. <description>Gestore informatico</description>
  105. <role-name>SicuraWeb_GI</role-name>
  106. </security-role>
  107. <security-role>
  108. <description>Utente visualizzatore</description>
  109. <role-name>SicuraWeb_VI</role-name>
  110. </security-role>
  111. <login-config>
  112. <auth-method>BASIC</auth-method>
  113. </login-config>
  114. </web-app>