author | František Kučera <franta-hg@frantovo.cz> |
Tue Apr 23 21:43:37 2013 +0200 (2013-04-23) | |
changeset 204 | bebec432330a |
parent 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 |
</servlet-mapping> |
franta-hg@187 | 106 |
<servlet-mapping> |
franta-hg@187 | 107 |
<servlet-name>odhlaseni</servlet-name> |
franta-hg@187 | 108 |
<url-pattern>/odhlaseni</url-pattern> |
franta-hg@187 | 109 |
</servlet-mapping> |
franta-hg@64 | 110 |
<!-- </mapováníServletů> --> |
franta-hg@179 | 111 |
<context-param> |
franta-hg@174 | 112 |
<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku --> |
franta-hg@179 | 113 |
<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> |
franta-hg@179 | 114 |
<param-value>cs</param-value> |
franta-hg@179 | 115 |
</context-param> |
franta-hg@179 | 116 |
<context-param> |
franta-hg@179 | 117 |
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> |
franta-hg@179 | 118 |
<param-value>cz.frantovo.nekurak.preklady</param-value> |
franta-hg@179 | 119 |
</context-param> |
franta-hg@40 | 120 |
<!-- <zabezpečení> --> |
franta-hg@179 | 121 |
<security-role> |
franta-hg@179 | 122 |
<role-name>opravneny</role-name> |
franta-hg@179 | 123 |
</security-role> |
franta-hg@179 | 124 |
<login-config> |
franta-hg@179 | 125 |
<auth-method>FORM</auth-method> |
franta-hg@197 | 126 |
<realm-name>nekurak.net</realm-name> |
franta-hg@179 | 127 |
<form-login-config> |
franta-hg@187 | 128 |
<form-login-page>/prihlaseni</form-login-page> |
franta-hg@194 | 129 |
<form-error-page>/prihlaseni?chyba=ano</form-error-page> |
franta-hg@179 | 130 |
</form-login-config> |
franta-hg@179 | 131 |
</login-config> |
franta-hg@40 | 132 |
<!-- </zabezpečení> --> |
franta-hg@7 | 133 |
</web-app> |