java/nekurak.net-rest/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Sun, 09 Jan 2011 16:27:44 +0100
changeset 158 e1ac3efcd140
parent 145 0efefbf5f8b6
permissions -rw-r--r--
vylepšen detail podniku, modularizace, značky, css
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <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">
     3 	<servlet>
     4 		<servlet-name>REST</servlet-name>
     5 		<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
     6 		<load-on-startup>1</load-on-startup>
     7 	</servlet>
     8 	<servlet-mapping>
     9 		<servlet-name>REST</servlet-name>
    10 		<url-pattern>/*</url-pattern>
    11 	</servlet-mapping>
    12 	<session-config>
    13 		<session-timeout>
    14 		30
    15 		</session-timeout>
    16 	</session-config>
    17 	<!--  <zabezpečení> -->
    18 	<security-role>
    19 		<role-name>redaktor</role-name>
    20 	</security-role>
    21 	<security-constraint>
    22 		<web-resource-collection>
    23 			<web-resource-name>Nekuřák.net REST API</web-resource-name>
    24 			<url-pattern>/*</url-pattern>
    25 			<http-method>PUT</http-method>
    26 			<http-method>POST</http-method>
    27 			<http-method>DELETE</http-method>
    28 		</web-resource-collection>
    29 		<auth-constraint>
    30 			<role-name>redaktor</role-name>
    31 		</auth-constraint>
    32 	</security-constraint>
    33 	<login-config>
    34 		<auth-method>BASIC</auth-method>
    35 		<realm-name>nekurakNET</realm-name>
    36 	</login-config>
    37 	<!--  </zabezpečení> -->
    38 </web-app>