author | František Kučera <franta-hg@frantovo.cz> |
Sun, 10 Jul 2011 19:01:03 +0200 | |
changeset 183 | 96abaf49fc7a |
parent 179 | 2ed9f3231a28 |
child 187 | e7b3ef7aaef4 |
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@64 | 65 |
<!-- </definiceServletů> --> |
franta-hg@64 | 66 |
<!-- <mapováníServletů> --> |
franta-hg@179 | 67 |
<servlet-mapping> |
franta-hg@179 | 68 |
<servlet-name>podnik</servlet-name> |
franta-hg@179 | 69 |
<url-pattern>/podnik/*</url-pattern> |
franta-hg@179 | 70 |
</servlet-mapping> |
franta-hg@179 | 71 |
<servlet-mapping> |
franta-hg@179 | 72 |
<servlet-name>fotky</servlet-name> |
franta-hg@179 | 73 |
<url-pattern>/fotky/*</url-pattern> |
franta-hg@179 | 74 |
</servlet-mapping> |
franta-hg@179 | 75 |
<servlet-mapping> |
franta-hg@179 | 76 |
<servlet-name>atom</servlet-name> |
franta-hg@179 | 77 |
<url-pattern>/atom/*</url-pattern> |
franta-hg@179 | 78 |
</servlet-mapping> |
franta-hg@179 | 79 |
<servlet-mapping> |
franta-hg@179 | 80 |
<servlet-name>kaptcha</servlet-name> |
franta-hg@179 | 81 |
<url-pattern>/kaptcha.jpg</url-pattern> |
franta-hg@179 | 82 |
</servlet-mapping> |
franta-hg@179 | 83 |
<servlet-mapping> |
franta-hg@174 | 84 |
<!-- Veřejné REST API --> |
franta-hg@179 | 85 |
<servlet-name>REST</servlet-name> |
franta-hg@179 | 86 |
<url-pattern>/zdroje/*</url-pattern> |
franta-hg@179 | 87 |
</servlet-mapping> |
franta-hg@179 | 88 |
<servlet-mapping> |
franta-hg@179 | 89 |
<servlet-name>komentare</servlet-name> |
franta-hg@179 | 90 |
<url-pattern>/komentare</url-pattern> |
franta-hg@179 | 91 |
</servlet-mapping> |
franta-hg@64 | 92 |
<!-- </mapováníServletů> --> |
franta-hg@179 | 93 |
<context-param> |
franta-hg@174 | 94 |
<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku --> |
franta-hg@179 | 95 |
<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> |
franta-hg@179 | 96 |
<param-value>cs</param-value> |
franta-hg@179 | 97 |
</context-param> |
franta-hg@179 | 98 |
<context-param> |
franta-hg@179 | 99 |
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> |
franta-hg@179 | 100 |
<param-value>cz.frantovo.nekurak.preklady</param-value> |
franta-hg@179 | 101 |
</context-param> |
franta-hg@40 | 102 |
<!-- <zabezpečení> --> |
franta-hg@179 | 103 |
<security-role> |
franta-hg@179 | 104 |
<role-name>opravneny</role-name> |
franta-hg@179 | 105 |
</security-role> |
franta-hg@179 | 106 |
<security-constraint> |
franta-hg@179 | 107 |
<web-resource-collection> |
franta-hg@179 | 108 |
<web-resource-name>Správa Nekuřák.net</web-resource-name> |
franta-hg@179 | 109 |
<url-pattern>/sprava/*</url-pattern> |
franta-hg@179 | 110 |
</web-resource-collection> |
franta-hg@179 | 111 |
<auth-constraint> |
franta-hg@179 | 112 |
<role-name>opravneny</role-name> |
franta-hg@179 | 113 |
</auth-constraint> |
franta-hg@179 | 114 |
</security-constraint> |
franta-hg@179 | 115 |
<login-config> |
franta-hg@179 | 116 |
<auth-method>FORM</auth-method> |
franta-hg@179 | 117 |
<realm-name>nekurakNET</realm-name> |
franta-hg@179 | 118 |
<form-login-config> |
franta-hg@179 | 119 |
<form-login-page>/?akce=prihlaseni</form-login-page> |
franta-hg@179 | 120 |
<form-error-page>/?akce=prihlaseni&chyba=ano</form-error-page> |
franta-hg@179 | 121 |
</form-login-config> |
franta-hg@179 | 122 |
</login-config> |
franta-hg@40 | 123 |
<!-- </zabezpečení> --> |
franta-hg@7 | 124 |
</web-app> |