java/nekurak.net-rest/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Tue, 08 Jun 2010 10:42:58 +0200
changeset 131 0d1cba59734b
parent 95 ec671fc8fb9c
child 145 0efefbf5f8b6
permissions -rw-r--r--
XML schéma pro komentáře
franta-hg@86
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@86
     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">
franta-hg@86
     3
    <servlet>
franta-hg@88
     4
	<servlet-name>REST</servlet-name>
franta-hg@86
     5
	<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
franta-hg@86
     6
	<load-on-startup>1</load-on-startup>
franta-hg@86
     7
    </servlet>
franta-hg@86
     8
    <servlet-mapping>
franta-hg@88
     9
	<servlet-name>REST</servlet-name>
franta-hg@88
    10
	<url-pattern>/*</url-pattern>
franta-hg@86
    11
    </servlet-mapping>
franta-hg@86
    12
    <session-config>
franta-hg@86
    13
	<session-timeout>
franta-hg@86
    14
	    30
franta-hg@86
    15
	</session-timeout>
franta-hg@86
    16
    </session-config>
franta-hg@95
    17
    <!--  <zabezpečení> -->
franta-hg@95
    18
    <security-role>
franta-hg@95
    19
	<role-name>redaktor</role-name>
franta-hg@95
    20
    </security-role>
franta-hg@95
    21
    <security-constraint>
franta-hg@95
    22
	<web-resource-collection>
franta-hg@95
    23
	    <web-resource-name>Nekuřák.net REST API</web-resource-name>
franta-hg@95
    24
	    <url-pattern>/*</url-pattern>
franta-hg@95
    25
	    <http-method>PUT</http-method>
franta-hg@95
    26
	    <http-method>POST</http-method>
franta-hg@95
    27
	    <http-method>DELETE</http-method>
franta-hg@95
    28
	</web-resource-collection>
franta-hg@95
    29
	<auth-constraint>
franta-hg@95
    30
	    <role-name>redaktor</role-name>
franta-hg@95
    31
	</auth-constraint>
franta-hg@95
    32
    </security-constraint>
franta-hg@95
    33
    <login-config>
franta-hg@95
    34
	<auth-method>BASIC</auth-method>
franta-hg@95
    35
	<realm-name>nekurakNET</realm-name>
franta-hg@95
    36
    </login-config>
franta-hg@95
    37
    <!--  </zabezpečení> -->
franta-hg@86
    38
</web-app>