author | František Kučera <franta-hg@frantovo.cz> |
Sat, 15 Jan 2011 14:27:02 +0100 | |
changeset 173 | 2b458ac09044 |
parent 145 | 0efefbf5f8b6 |
child 174 | ca3c7dd220fe |
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@145 | 3 |
<session-config> |
franta-hg@145 | 4 |
<session-timeout>30</session-timeout> |
franta-hg@145 | 5 |
</session-config> |
franta-hg@145 | 6 |
<welcome-file-list> |
franta-hg@145 | 7 |
<welcome-file>index.jsp</welcome-file> |
franta-hg@145 | 8 |
</welcome-file-list> |
franta-hg@64 | 9 |
<!-- <chybovéStránky> --> |
franta-hg@145 | 10 |
<error-page> |
franta-hg@83 | 11 |
<!-- Stránka nenalezena --> |
franta-hg@145 | 12 |
<error-code>404</error-code> |
franta-hg@145 | 13 |
<location>/WEB-INF/chyby/404.jsp</location> |
franta-hg@145 | 14 |
</error-page> |
franta-hg@145 | 15 |
<error-page> |
franta-hg@83 | 16 |
<!-- Interní chyba serveru --> |
franta-hg@145 | 17 |
<error-code>500</error-code> |
franta-hg@145 | 18 |
<location>/WEB-INF/chyby/500.jsp</location> |
franta-hg@145 | 19 |
</error-page> |
franta-hg@64 | 20 |
<!-- </chybovéStránky> --> |
franta-hg@64 | 21 |
<!-- <definiceServletů> --> |
franta-hg@145 | 22 |
<servlet> |
franta-hg@145 | 23 |
<servlet-name>atom</servlet-name> |
franta-hg@145 | 24 |
<jsp-file>/WEB-INF/atom/atom.jsp</jsp-file> |
franta-hg@145 | 25 |
</servlet> |
franta-hg@145 | 26 |
<servlet> |
franta-hg@145 | 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@145 | 30 |
</description> |
franta-hg@145 | 31 |
<servlet-name>fotky</servlet-name> |
franta-hg@145 | 32 |
<servlet-class>cz.frantovo.nekurak.servlet.Fotky</servlet-class> |
franta-hg@145 | 33 |
<init-param> |
franta-hg@145 | 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@145 | 37 |
</description> |
franta-hg@145 | 38 |
<param-name>adresar</param-name> |
franta-hg@145 | 39 |
<param-value>/var/www/nekurak.net/fotky</param-value> |
franta-hg@145 | 40 |
</init-param> |
franta-hg@145 | 41 |
<load-on-startup>1</load-on-startup> |
franta-hg@145 | 42 |
</servlet> |
franta-hg@145 | 43 |
<servlet> |
franta-hg@145 | 44 |
<servlet-name>kaptcha</servlet-name> |
franta-hg@145 | 45 |
<servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class> |
franta-hg@145 | 46 |
</servlet> |
franta-hg@145 | 47 |
<servlet> |
franta-hg@145 | 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@145 | 49 |
<servlet-name>REST</servlet-name> |
franta-hg@145 | 50 |
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
franta-hg@145 | 51 |
<load-on-startup>1</load-on-startup> |
franta-hg@145 | 52 |
</servlet> |
franta-hg@145 | 53 |
<servlet> |
franta-hg@145 | 54 |
<description>Odesílání a náhledy komentářů pomocí AJAXu.</description> |
franta-hg@145 | 55 |
<servlet-name>komentare</servlet-name> |
franta-hg@145 | 56 |
<servlet-class>cz.frantovo.nekurak.servlet.Komentare</servlet-class> |
franta-hg@145 | 57 |
</servlet> |
franta-hg@64 | 58 |
<!-- </definiceServletů> --> |
franta-hg@64 | 59 |
<!-- <mapováníServletů> --> |
franta-hg@145 | 60 |
<servlet-mapping> |
franta-hg@145 | 61 |
<servlet-name>fotky</servlet-name> |
franta-hg@145 | 62 |
<url-pattern>/fotky/*</url-pattern> |
franta-hg@145 | 63 |
</servlet-mapping> |
franta-hg@145 | 64 |
<servlet-mapping> |
franta-hg@145 | 65 |
<servlet-name>atom</servlet-name> |
franta-hg@145 | 66 |
<url-pattern>/atom/*</url-pattern> |
franta-hg@145 | 67 |
</servlet-mapping> |
franta-hg@145 | 68 |
<servlet-mapping> |
franta-hg@145 | 69 |
<servlet-name>kaptcha</servlet-name> |
franta-hg@145 | 70 |
<url-pattern>/kaptcha.jpg</url-pattern> |
franta-hg@145 | 71 |
</servlet-mapping> |
franta-hg@145 | 72 |
<servlet-mapping> |
franta-hg@110 | 73 |
<!-- Veřejné REST API --> |
franta-hg@145 | 74 |
<servlet-name>REST</servlet-name> |
franta-hg@145 | 75 |
<url-pattern>/zdroje/*</url-pattern> |
franta-hg@145 | 76 |
</servlet-mapping> |
franta-hg@145 | 77 |
<servlet-mapping> |
franta-hg@145 | 78 |
<servlet-name>komentare</servlet-name> |
franta-hg@145 | 79 |
<url-pattern>/komentare</url-pattern> |
franta-hg@145 | 80 |
</servlet-mapping> |
franta-hg@64 | 81 |
<!-- </mapováníServletů> --> |
franta-hg@145 | 82 |
<context-param> |
franta-hg@83 | 83 |
<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku --> |
franta-hg@145 | 84 |
<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> |
franta-hg@145 | 85 |
<param-value>cs</param-value> |
franta-hg@145 | 86 |
</context-param> |
franta-hg@40 | 87 |
<!-- <zabezpečení> --> |
franta-hg@145 | 88 |
<security-role> |
franta-hg@145 | 89 |
<role-name>opravneny</role-name> |
franta-hg@145 | 90 |
</security-role> |
franta-hg@145 | 91 |
<security-constraint> |
franta-hg@145 | 92 |
<web-resource-collection> |
franta-hg@145 | 93 |
<web-resource-name>Správa Nekuřák.net</web-resource-name> |
franta-hg@145 | 94 |
<url-pattern>/sprava/*</url-pattern> |
franta-hg@145 | 95 |
</web-resource-collection> |
franta-hg@145 | 96 |
<auth-constraint> |
franta-hg@145 | 97 |
<role-name>opravneny</role-name> |
franta-hg@145 | 98 |
</auth-constraint> |
franta-hg@145 | 99 |
</security-constraint> |
franta-hg@145 | 100 |
<login-config> |
franta-hg@145 | 101 |
<auth-method>FORM</auth-method> |
franta-hg@145 | 102 |
<realm-name>nekurakNET</realm-name> |
franta-hg@145 | 103 |
<form-login-config> |
franta-hg@145 | 104 |
<form-login-page>/?akce=prihlaseni</form-login-page> |
franta-hg@145 | 105 |
<form-error-page>/?akce=prihlaseni&chyba=ano</form-error-page> |
franta-hg@145 | 106 |
</form-login-config> |
franta-hg@145 | 107 |
</login-config> |
franta-hg@40 | 108 |
<!-- </zabezpečení> --> |
franta-hg@7 | 109 |
</web-app> |