1.1 --- a/java/nekurak.net-rest/web/WEB-INF/web.xml Tue Apr 06 01:02:49 2010 +0200
1.2 +++ b/java/nekurak.net-rest/web/WEB-INF/web.xml Fri Jul 15 22:25:39 2011 +0200
1.3 @@ -1,38 +1,38 @@
1.4 <?xml version="1.0" encoding="UTF-8"?>
1.5 <web-app version="3.0" 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_3_0.xsd">
1.6 - <servlet>
1.7 - <servlet-name>REST</servlet-name>
1.8 - <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
1.9 - <load-on-startup>1</load-on-startup>
1.10 - </servlet>
1.11 - <servlet-mapping>
1.12 - <servlet-name>REST</servlet-name>
1.13 - <url-pattern>/*</url-pattern>
1.14 - </servlet-mapping>
1.15 - <session-config>
1.16 - <session-timeout>
1.17 - 30
1.18 - </session-timeout>
1.19 - </session-config>
1.20 - <!-- <zabezpečení> -->
1.21 - <security-role>
1.22 - <role-name>redaktor</role-name>
1.23 - </security-role>
1.24 - <security-constraint>
1.25 - <web-resource-collection>
1.26 - <web-resource-name>Nekuřák.net REST API</web-resource-name>
1.27 - <url-pattern>/*</url-pattern>
1.28 - <http-method>PUT</http-method>
1.29 - <http-method>POST</http-method>
1.30 - <http-method>DELETE</http-method>
1.31 - </web-resource-collection>
1.32 - <auth-constraint>
1.33 - <role-name>redaktor</role-name>
1.34 - </auth-constraint>
1.35 - </security-constraint>
1.36 - <login-config>
1.37 - <auth-method>BASIC</auth-method>
1.38 - <realm-name>nekurakNET</realm-name>
1.39 - </login-config>
1.40 - <!-- </zabezpečení> -->
1.41 + <servlet>
1.42 + <servlet-name>REST</servlet-name>
1.43 + <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
1.44 + <load-on-startup>1</load-on-startup>
1.45 + </servlet>
1.46 + <servlet-mapping>
1.47 + <servlet-name>REST</servlet-name>
1.48 + <url-pattern>/*</url-pattern>
1.49 + </servlet-mapping>
1.50 + <session-config>
1.51 + <session-timeout>
1.52 + 30
1.53 + </session-timeout>
1.54 + </session-config>
1.55 + <!-- <zabezpečení> -->
1.56 + <security-role>
1.57 + <role-name>redaktor</role-name>
1.58 + </security-role>
1.59 + <security-constraint>
1.60 + <web-resource-collection>
1.61 + <web-resource-name>Nekuřák.net REST API</web-resource-name>
1.62 + <url-pattern>/*</url-pattern>
1.63 + <http-method>PUT</http-method>
1.64 + <http-method>POST</http-method>
1.65 + <http-method>DELETE</http-method>
1.66 + </web-resource-collection>
1.67 + <auth-constraint>
1.68 + <role-name>redaktor</role-name>
1.69 + </auth-constraint>
1.70 + </security-constraint>
1.71 + <login-config>
1.72 + <auth-method>BASIC</auth-method>
1.73 + <realm-name>nekurakNET</realm-name>
1.74 + </login-config>
1.75 + <!-- </zabezpečení> -->
1.76 </web-app>