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