author | František Kučera <franta-hg@frantovo.cz> |
Tue, 25 Jan 2011 22:03:46 +0100 | |
changeset 177 | d874e9e3e162 |
parent 174 | ca3c7dd220fe |
child 178 | afee4e663992 |
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@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@177 | 27 |
<servlet-class>cz.frantovo.nekurak.servlet.Podnik</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@40 | 98 |
<!-- <zabezpečení> --> |
franta-hg@177 | 99 |
<security-role> |
franta-hg@177 | 100 |
<role-name>opravneny</role-name> |
franta-hg@177 | 101 |
</security-role> |
franta-hg@177 | 102 |
<security-constraint> |
franta-hg@177 | 103 |
<web-resource-collection> |
franta-hg@177 | 104 |
<web-resource-name>Správa Nekuřák.net</web-resource-name> |
franta-hg@177 | 105 |
<url-pattern>/sprava/*</url-pattern> |
franta-hg@177 | 106 |
</web-resource-collection> |
franta-hg@177 | 107 |
<auth-constraint> |
franta-hg@177 | 108 |
<role-name>opravneny</role-name> |
franta-hg@177 | 109 |
</auth-constraint> |
franta-hg@177 | 110 |
</security-constraint> |
franta-hg@177 | 111 |
<login-config> |
franta-hg@177 | 112 |
<auth-method>FORM</auth-method> |
franta-hg@177 | 113 |
<realm-name>nekurakNET</realm-name> |
franta-hg@177 | 114 |
<form-login-config> |
franta-hg@177 | 115 |
<form-login-page>/?akce=prihlaseni</form-login-page> |
franta-hg@177 | 116 |
<form-error-page>/?akce=prihlaseni&chyba=ano</form-error-page> |
franta-hg@177 | 117 |
</form-login-config> |
franta-hg@177 | 118 |
</login-config> |
franta-hg@40 | 119 |
<!-- </zabezpečení> --> |
franta-hg@7 | 120 |
</web-app> |