<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
    <filter>
        <filter-name>XSSFilter</filter-name>
        <filter-class>net.i2p.servlet.filters.XSSFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>XSSFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

  <display-name>susidns</display-name>

    <servlet>
        <servlet-name>addressbook-runner</servlet-name>
        <servlet-class>net.i2p.addressbook.servlet.Servlet</servlet-class>
        <init-param>
            <param-name>home</param-name>
            <param-value>./addressbook</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet>
      <servlet-name>i2p.susi.dns.TranslateSVGServlet</servlet-name>
      <servlet-class>i2p.susi.dns.TranslateSVGServlet</servlet-class>
    </servlet>

    <servlet>
      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
      <servlet-class>net.i2p.servlet.ErrorServlet</servlet-class>
      <init-param>
        <param-name>name</param-name>
        <param-value>Addressbook</param-value>
      </init-param>
    </servlet>

    <servlet-mapping> 
      <servlet-name>addressbook-runner</servlet-name>
      <url-pattern>/addressbook-runner</url-pattern>
    </servlet-mapping>

    <!-- precompiled servlets -->

    <!-- non-.jsp URLs -->

    <servlet-mapping>
        <servlet-name>i2p.susi.dns.jsp.config_jsp</servlet-name>
        <url-pattern>/config</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>i2p.susi.dns.jsp.subscriptions_jsp</servlet-name>
        <url-pattern>/subscriptions</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>i2p.susi.dns.jsp.addressbook_jsp</servlet-name>
        <url-pattern>/addressbook</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>i2p.susi.dns.jsp.details_jsp</servlet-name>
        <url-pattern>/details</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>i2p.susi.dns.jsp.index_jsp</servlet-name>
        <url-pattern>/index</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>i2p.susi.dns.jsp.index_jsp</servlet-name>
        <url-pattern>/index.html</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>i2p.susi.dns.jsp.index_jsp</servlet-name>
        <!-- empty pattern handles the root -->
        <url-pattern></url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>i2p.susi.dns.jsp.export_jsp</servlet-name>
        <url-pattern>/export</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
      <servlet-name>i2p.susi.dns.TranslateSVGServlet</servlet-name>
      <url-pattern>/images/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
      <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
      <url-pattern>/error</url-pattern>
    </servlet-mapping>

    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

    <error-page>
        <error-code>403</error-code>
        <location>/error</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/error</location>
    </error-page>
    <error-page>
        <error-code>500</error-code>
        <location>/error</location>
    </error-page>

</web-app>
