source: apps/imagegen/imagegen/webapp/src/main/webapp/WEB-INF/web.xml @ 49d82356

Last change on this file since 49d82356 was 49d82356, checked in by zzz <zzz@…>, 4 years ago

New imagegen webapp, including
servlets for identicon and qr images.
Heavily modified from the example in the identicon package,
which is MIT licensed.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
4         version="3.0">
5    <display-name>WebAppExample - Identicon</display-name>
6
7    <servlet>
8     <servlet-name>net.i2p.imagegen.IdenticonServlet</servlet-name>
9     <servlet-class>net.i2p.imagegen.IdenticonServlet</servlet-class>
10     <load-on-startup>1</load-on-startup>
11    </servlet>
12
13    <servlet>
14     <servlet-name>net.i2p.imagegen.QRServlet</servlet-name>
15     <servlet-class>net.i2p.imagegen.QRServlet</servlet-class>
16     <load-on-startup>1</load-on-startup>
17    </servlet>
18     
19    <servlet>
20     <servlet-name>net.i2p.imagegen.RandomArtServlet</servlet-name>
21     <servlet-class>net.i2p.imagegen.RandomArtServlet</servlet-class>
22     <load-on-startup>1</load-on-startup>
23    </servlet>
24     
25    <!-- precompiled servlets -->
26   
27    <servlet-mapping> 
28      <servlet-name>net.i2p.imagegen.IdenticonServlet</servlet-name>
29      <url-pattern>/id</url-pattern>
30    </servlet-mapping>
31   
32    <servlet-mapping> 
33      <servlet-name>net.i2p.imagegen.QRServlet</servlet-name>
34      <url-pattern>/qr</url-pattern>
35    </servlet-mapping>
36   
37    <servlet-mapping> 
38      <servlet-name>net.i2p.imagegen.RandomArtServlet</servlet-name>
39      <url-pattern>/ra</url-pattern>
40    </servlet-mapping>
41   
42    <!-- this webapp doesn't actually use sessions or cookies -->
43    <session-config>
44        <session-timeout>
45            30
46        </session-timeout>
47        <cookie-config>
48            <http-only>true</http-only>
49        </cookie-config>
50    </session-config>
51
52</web-app>
Note: See TracBrowser for help on using the repository browser.