author | František Kučera <franta-hg@frantovo.cz> |
Wed, 26 Jan 2011 03:35:01 +0100 | |
changeset 181 | bcf03fc1e3f9 |
parent 145 | 0efefbf5f8b6 |
permissions | -rw-r--r-- |
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@145 | 3 |
<servlet> |
franta-hg@145 | 4 |
<servlet-name>REST</servlet-name> |
franta-hg@145 | 5 |
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
franta-hg@145 | 6 |
<load-on-startup>1</load-on-startup> |
franta-hg@145 | 7 |
</servlet> |
franta-hg@145 | 8 |
<servlet-mapping> |
franta-hg@145 | 9 |
<servlet-name>REST</servlet-name> |
franta-hg@145 | 10 |
<url-pattern>/*</url-pattern> |
franta-hg@145 | 11 |
</servlet-mapping> |
franta-hg@145 | 12 |
<session-config> |
franta-hg@145 | 13 |
<session-timeout> |
franta-hg@145 | 14 |
30 |
franta-hg@145 | 15 |
</session-timeout> |
franta-hg@145 | 16 |
</session-config> |
franta-hg@145 | 17 |
<!-- <zabezpečení> --> |
franta-hg@145 | 18 |
<security-role> |
franta-hg@145 | 19 |
<role-name>redaktor</role-name> |
franta-hg@145 | 20 |
</security-role> |
franta-hg@145 | 21 |
<security-constraint> |
franta-hg@145 | 22 |
<web-resource-collection> |
franta-hg@145 | 23 |
<web-resource-name>Nekuřák.net REST API</web-resource-name> |
franta-hg@145 | 24 |
<url-pattern>/*</url-pattern> |
franta-hg@145 | 25 |
<http-method>PUT</http-method> |
franta-hg@145 | 26 |
<http-method>POST</http-method> |
franta-hg@145 | 27 |
<http-method>DELETE</http-method> |
franta-hg@145 | 28 |
</web-resource-collection> |
franta-hg@145 | 29 |
<auth-constraint> |
franta-hg@145 | 30 |
<role-name>redaktor</role-name> |
franta-hg@145 | 31 |
</auth-constraint> |
franta-hg@145 | 32 |
</security-constraint> |
franta-hg@145 | 33 |
<login-config> |
franta-hg@145 | 34 |
<auth-method>BASIC</auth-method> |
franta-hg@145 | 35 |
<realm-name>nekurakNET</realm-name> |
franta-hg@145 | 36 |
</login-config> |
franta-hg@145 | 37 |
<!-- </zabezpečení> --> |
franta-hg@86 | 38 |
</web-app> |