author | František Kučera <franta-hg@frantovo.cz> |
Wed Jul 20 18:55:25 2011 +0200 (2011-07-20) | |
changeset 191 | 19128e9f7fb1 |
parent 179 | 2ed9f3231a28 |
child 194 | 4e65c1fe5e59 |
permissions | -rw-r--r-- |
franta-hg@0 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@178 | 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@179 | 3 |
<session-config> |
franta-hg@179 | 4 |
<session-timeout>30</session-timeout> |
franta-hg@179 | 5 |
</session-config> |
franta-hg@179 | 6 |
<welcome-file-list> |
franta-hg@179 | 7 |
<welcome-file>index.jsp</welcome-file> |
franta-hg@179 | 8 |
</welcome-file-list> |
franta-hg@64 | 9 |
<!-- <chybovéStránky> --> |
franta-hg@179 | 10 |
<error-page> |
franta-hg@174 | 11 |
<!-- Stránka nenalezena --> |
franta-hg@179 | 12 |
<error-code>404</error-code> |
franta-hg@179 | 13 |
<location>/WEB-INF/chyby/404.jsp</location> |
franta-hg@179 | 14 |
</error-page> |
franta-hg@179 | 15 |
<error-page> |
franta-hg@174 | 16 |
<!-- Interní chyba serveru --> |
franta-hg@179 | 17 |
<error-code>500</error-code> |
franta-hg@179 | 18 |
<location>/WEB-INF/chyby/500.jsp</location> |
franta-hg@179 | 19 |
</error-page> |
franta-hg@64 | 20 |
<!-- </chybovéStránky> --> |
franta-hg@179 | 21 |
<listener> |
franta-hg@179 | 22 |
<listener-class>cz.frantovo.nekurak.posluchac.OchranaProtiCSRF</listener-class> |
franta-hg@179 | 23 |
</listener> |
franta-hg@64 | 24 |
<!-- <definiceServletů> --> |
franta-hg@179 | 25 |
<servlet> |
franta-hg@179 | 26 |
<servlet-name>podnik</servlet-name> |
franta-hg@179 | 27 |
<servlet-class>cz.frantovo.nekurak.servlet.PodnikServlet</servlet-class> |
franta-hg@179 | 28 |
</servlet> |
franta-hg@179 | 29 |
<servlet> |
franta-hg@179 | 30 |
<servlet-name>atom</servlet-name> |
franta-hg@179 | 31 |
<jsp-file>/WEB-INF/atom/atom.jsp</jsp-file> |
franta-hg@179 | 32 |
</servlet> |
franta-hg@179 | 33 |
<servlet> |
franta-hg@179 | 34 |
<description> |
franta-hg@64 | 35 |
Servlet zpřístupňující fotky umístěné ve zvláštním adresáři |
franta-hg@64 | 36 |
(data oddělená od aplikace). |
franta-hg@145 | 37 |
</description> |
franta-hg@179 | 38 |
<servlet-name>fotky</servlet-name> |
franta-hg@179 | 39 |
<servlet-class>cz.frantovo.nekurak.servlet.Fotky</servlet-class> |
franta-hg@179 | 40 |
<init-param> |
franta-hg@179 | 41 |
<description> |
franta-hg@64 | 42 |
Adresář na disku, který obsahuje fotky podniků. |
franta-hg@64 | 43 |
Musí existovat při startu aplikace. |
franta-hg@145 | 44 |
</description> |
franta-hg@179 | 45 |
<param-name>adresar</param-name> |
franta-hg@179 | 46 |
<param-value>/var/www/nekurak.net/fotky</param-value> |
franta-hg@179 | 47 |
</init-param> |
franta-hg@179 | 48 |
<load-on-startup>1</load-on-startup> |
franta-hg@179 | 49 |
</servlet> |
franta-hg@179 | 50 |
<servlet> |
franta-hg@179 | 51 |
<servlet-name>kaptcha</servlet-name> |
franta-hg@179 | 52 |
<servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class> |
franta-hg@179 | 53 |
</servlet> |
franta-hg@179 | 54 |
<servlet> |
franta-hg@179 | 55 |
<description>Veřejné REST API (pak máme ještě jedno soukromé, kde musí být uživatel přihlášený)</description> |
franta-hg@179 | 56 |
<servlet-name>REST</servlet-name> |
franta-hg@179 | 57 |
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
franta-hg@179 | 58 |
<load-on-startup>1</load-on-startup> |
franta-hg@179 | 59 |
</servlet> |
franta-hg@179 | 60 |
<servlet> |
franta-hg@179 | 61 |
<description>Odesílání a náhledy komentářů pomocí AJAXu.</description> |
franta-hg@179 | 62 |
<servlet-name>komentare</servlet-name> |
franta-hg@179 | 63 |
<servlet-class>cz.frantovo.nekurak.servlet.Komentare</servlet-class> |
franta-hg@179 | 64 |
</servlet> |
franta-hg@187 | 65 |
<servlet> |
franta-hg@187 | 66 |
<description>Přihlašovací formulář</description> |
franta-hg@187 | 67 |
<servlet-name>prihlaseni</servlet-name> |
franta-hg@187 | 68 |
<jsp-file>/WEB-INF/casti/prihlaseni.jsp</jsp-file> |
franta-hg@187 | 69 |
</servlet> |
franta-hg@187 | 70 |
<servlet> |
franta-hg@187 | 71 |
<description>Odhlášení uživatele</description> |
franta-hg@187 | 72 |
<servlet-name>odhlaseni</servlet-name> |
franta-hg@187 | 73 |
<servlet-class>cz.frantovo.nekurak.servlet.Odhlaseni</servlet-class> |
franta-hg@187 | 74 |
</servlet> |
franta-hg@64 | 75 |
<!-- </definiceServletů> --> |
franta-hg@64 | 76 |
<!-- <mapováníServletů> --> |
franta-hg@179 | 77 |
<servlet-mapping> |
franta-hg@179 | 78 |
<servlet-name>podnik</servlet-name> |
franta-hg@179 | 79 |
<url-pattern>/podnik/*</url-pattern> |
franta-hg@179 | 80 |
</servlet-mapping> |
franta-hg@179 | 81 |
<servlet-mapping> |
franta-hg@179 | 82 |
<servlet-name>fotky</servlet-name> |
franta-hg@179 | 83 |
<url-pattern>/fotky/*</url-pattern> |
franta-hg@179 | 84 |
</servlet-mapping> |
franta-hg@179 | 85 |
<servlet-mapping> |
franta-hg@179 | 86 |
<servlet-name>atom</servlet-name> |
franta-hg@179 | 87 |
<url-pattern>/atom/*</url-pattern> |
franta-hg@179 | 88 |
</servlet-mapping> |
franta-hg@179 | 89 |
<servlet-mapping> |
franta-hg@179 | 90 |
<servlet-name>kaptcha</servlet-name> |
franta-hg@179 | 91 |
<url-pattern>/kaptcha.jpg</url-pattern> |
franta-hg@179 | 92 |
</servlet-mapping> |
franta-hg@179 | 93 |
<servlet-mapping> |
franta-hg@174 | 94 |
<!-- Veřejné REST API --> |
franta-hg@179 | 95 |
<servlet-name>REST</servlet-name> |
franta-hg@179 | 96 |
<url-pattern>/zdroje/*</url-pattern> |
franta-hg@179 | 97 |
</servlet-mapping> |
franta-hg@179 | 98 |
<servlet-mapping> |
franta-hg@179 | 99 |
<servlet-name>komentare</servlet-name> |
franta-hg@179 | 100 |
<url-pattern>/komentare</url-pattern> |
franta-hg@179 | 101 |
</servlet-mapping> |
franta-hg@187 | 102 |
<servlet-mapping> |
franta-hg@187 | 103 |
<servlet-name>prihlaseni</servlet-name> |
franta-hg@187 | 104 |
<url-pattern>/prihlaseni</url-pattern> |
franta-hg@187 | 105 |
<url-pattern>/prihlaseni-chyba</url-pattern> |
franta-hg@187 | 106 |
</servlet-mapping> |
franta-hg@187 | 107 |
<servlet-mapping> |
franta-hg@187 | 108 |
<servlet-name>odhlaseni</servlet-name> |
franta-hg@187 | 109 |
<url-pattern>/odhlaseni</url-pattern> |
franta-hg@187 | 110 |
</servlet-mapping> |
franta-hg@64 | 111 |
<!-- </mapováníServletů> --> |
franta-hg@179 | 112 |
<context-param> |
franta-hg@174 | 113 |
<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku --> |
franta-hg@179 | 114 |
<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> |
franta-hg@179 | 115 |
<param-value>cs</param-value> |
franta-hg@179 | 116 |
</context-param> |
franta-hg@179 | 117 |
<context-param> |
franta-hg@179 | 118 |
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> |
franta-hg@179 | 119 |
<param-value>cz.frantovo.nekurak.preklady</param-value> |
franta-hg@179 | 120 |
</context-param> |
franta-hg@40 | 121 |
<!-- <zabezpečení> --> |
franta-hg@179 | 122 |
<security-role> |
franta-hg@179 | 123 |
<role-name>opravneny</role-name> |
franta-hg@179 | 124 |
</security-role> |
franta-hg@179 | 125 |
<login-config> |
franta-hg@179 | 126 |
<auth-method>FORM</auth-method> |
franta-hg@179 | 127 |
<realm-name>nekurakNET</realm-name> |
franta-hg@179 | 128 |
<form-login-config> |
franta-hg@187 | 129 |
<form-login-page>/prihlaseni</form-login-page> |
franta-hg@187 | 130 |
<form-error-page>/prihlaseni-chyba</form-error-page> |
franta-hg@179 | 131 |
</form-login-config> |
franta-hg@179 | 132 |
</login-config> |
franta-hg@40 | 133 |
<!-- </zabezpečení> --> |
franta-hg@7 | 134 |
</web-app> |