author | František Kučera <franta-hg@frantovo.cz> |
Sun Jun 13 17:20:20 2010 +0200 (2010-06-13) | |
changeset 140 | 0f2df9746a2c |
parent 83 | 6767606d6342 |
child 142 | 44ef544460ca |
permissions | -rw-r--r-- |
franta-hg@0 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@0 | 2 |
<web-app version="2.5" 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_2_5.xsd"> |
franta-hg@0 | 3 |
<session-config> |
franta-hg@83 | 4 |
<session-timeout>30</session-timeout> |
franta-hg@0 | 5 |
</session-config> |
franta-hg@0 | 6 |
<welcome-file-list> |
franta-hg@83 | 7 |
<welcome-file>index.jsp</welcome-file> |
franta-hg@7 | 8 |
</welcome-file-list> |
franta-hg@64 | 9 |
<!-- <chybovéStránky> --> |
franta-hg@12 | 10 |
<error-page> |
franta-hg@83 | 11 |
<!-- Stránka nenalezena --> |
franta-hg@83 | 12 |
<error-code>404</error-code> |
franta-hg@83 | 13 |
<location>/WEB-INF/chyby/404.jsp</location> |
franta-hg@12 | 14 |
</error-page> |
franta-hg@12 | 15 |
<error-page> |
franta-hg@83 | 16 |
<!-- Interní chyba serveru --> |
franta-hg@83 | 17 |
<error-code>500</error-code> |
franta-hg@83 | 18 |
<location>/WEB-INF/chyby/500.jsp</location> |
franta-hg@12 | 19 |
</error-page> |
franta-hg@64 | 20 |
<!-- </chybovéStránky> --> |
franta-hg@64 | 21 |
<!-- <definiceServletů> --> |
franta-hg@49 | 22 |
<servlet> |
franta-hg@83 | 23 |
<servlet-name>atom</servlet-name> |
franta-hg@83 | 24 |
<jsp-file>/WEB-INF/atom/atom.jsp</jsp-file> |
franta-hg@49 | 25 |
</servlet> |
franta-hg@64 | 26 |
<servlet> |
franta-hg@83 | 27 |
<description> |
franta-hg@64 | 28 |
Servlet zpřístupňující fotky umístěné ve zvláštním adresáři |
franta-hg@64 | 29 |
(data oddělená od aplikace). |
franta-hg@64 | 30 |
</description> |
franta-hg@83 | 31 |
<servlet-name>fotky</servlet-name> |
franta-hg@83 | 32 |
<servlet-class>cz.frantovo.nekurak.servlet.Fotky</servlet-class> |
franta-hg@83 | 33 |
<init-param> |
franta-hg@83 | 34 |
<description> |
franta-hg@64 | 35 |
Adresář na disku, který obsahuje fotky podniků. |
franta-hg@64 | 36 |
Musí existovat při startu aplikace. |
franta-hg@64 | 37 |
</description> |
franta-hg@83 | 38 |
<param-name>adresar</param-name> |
franta-hg@83 | 39 |
<param-value>/var/www/nekurak.net/fotky</param-value> |
franta-hg@83 | 40 |
</init-param> |
franta-hg@83 | 41 |
<load-on-startup>1</load-on-startup> |
franta-hg@83 | 42 |
</servlet> |
franta-hg@83 | 43 |
<servlet> |
franta-hg@83 | 44 |
<servlet-name>Kaptcha</servlet-name> |
franta-hg@83 | 45 |
<servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class> |
franta-hg@64 | 46 |
</servlet> |
franta-hg@110 | 47 |
<servlet> |
franta-hg@110 | 48 |
<description>Veřejné REST API (pak máme ještě jedno soukromé, kde musí být uživatel přihlášený)</description> |
franta-hg@110 | 49 |
<servlet-name>REST</servlet-name> |
franta-hg@110 | 50 |
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
franta-hg@110 | 51 |
<load-on-startup>1</load-on-startup> |
franta-hg@110 | 52 |
</servlet> |
franta-hg@64 | 53 |
<!-- </definiceServletů> --> |
franta-hg@64 | 54 |
<!-- <mapováníServletů> --> |
franta-hg@49 | 55 |
<servlet-mapping> |
franta-hg@83 | 56 |
<servlet-name>fotky</servlet-name> |
franta-hg@83 | 57 |
<url-pattern>/fotky/*</url-pattern> |
franta-hg@49 | 58 |
</servlet-mapping> |
franta-hg@64 | 59 |
<servlet-mapping> |
franta-hg@83 | 60 |
<servlet-name>atom</servlet-name> |
franta-hg@83 | 61 |
<url-pattern>/atom/*</url-pattern> |
franta-hg@83 | 62 |
</servlet-mapping> |
franta-hg@83 | 63 |
<servlet-mapping> |
franta-hg@83 | 64 |
<servlet-name>Kaptcha</servlet-name> |
franta-hg@83 | 65 |
<url-pattern>/kaptcha.jpg</url-pattern> |
franta-hg@64 | 66 |
</servlet-mapping> |
franta-hg@110 | 67 |
<servlet-mapping> |
franta-hg@110 | 68 |
<!-- Veřejné REST API --> |
franta-hg@110 | 69 |
<servlet-name>REST</servlet-name> |
franta-hg@110 | 70 |
<url-pattern>/zdroje/*</url-pattern> |
franta-hg@110 | 71 |
</servlet-mapping> |
franta-hg@64 | 72 |
<!-- </mapováníServletů> --> |
franta-hg@33 | 73 |
<context-param> |
franta-hg@83 | 74 |
<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku --> |
franta-hg@83 | 75 |
<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> |
franta-hg@83 | 76 |
<param-value>cs</param-value> |
franta-hg@33 | 77 |
</context-param> |
franta-hg@40 | 78 |
<!-- <zabezpečení> --> |
franta-hg@40 | 79 |
<security-role> |
franta-hg@83 | 80 |
<role-name>opravneny</role-name> |
franta-hg@40 | 81 |
</security-role> |
franta-hg@40 | 82 |
<security-constraint> |
franta-hg@83 | 83 |
<web-resource-collection> |
franta-hg@83 | 84 |
<web-resource-name>Správa Nekuřák.net</web-resource-name> |
franta-hg@83 | 85 |
<url-pattern>/sprava/*</url-pattern> |
franta-hg@83 | 86 |
</web-resource-collection> |
franta-hg@83 | 87 |
<auth-constraint> |
franta-hg@83 | 88 |
<role-name>opravneny</role-name> |
franta-hg@83 | 89 |
</auth-constraint> |
franta-hg@49 | 90 |
</security-constraint> |
franta-hg@40 | 91 |
<login-config> |
franta-hg@83 | 92 |
<auth-method>FORM</auth-method> |
franta-hg@83 | 93 |
<realm-name>nekurakNET</realm-name> |
franta-hg@83 | 94 |
<form-login-config> |
franta-hg@83 | 95 |
<form-login-page>/?akce=prihlaseni</form-login-page> |
franta-hg@83 | 96 |
<form-error-page>/?akce=prihlaseni&chyba=ano</form-error-page> |
franta-hg@83 | 97 |
</form-login-config> |
franta-hg@40 | 98 |
</login-config> |
franta-hg@40 | 99 |
<!-- </zabezpečení> --> |
franta-hg@7 | 100 |
</web-app> |