<?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>

    <!-- precompiled servlets -->

    <servlet>
      <servlet-name>net.i2p.router.web.servlets.CodedIconRendererServlet</servlet-name>
      <servlet-class>net.i2p.router.web.servlets.CodedIconRendererServlet</servlet-class>
    </servlet>

    <servlet-mapping>
      <servlet-name>net.i2p.router.web.servlets.CodedIconRendererServlet</servlet-name>
      <url-pattern>/Plugins/*</url-pattern>
    </servlet-mapping>


    
    <!-- yeah, i'm lazy, using a jsp instead of a servlet.. -->
    <servlet-mapping> 
      <servlet-name>net.i2p.router.web.jsp.viewtheme_jsp</servlet-name>
      <url-pattern>/javadoc/*</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping> 
      <servlet-name>net.i2p.router.web.jsp.viewhistory_jsp</servlet-name>
      <url-pattern>/history.txt</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping> 
      <servlet-name>net.i2p.router.web.jsp.viewlicense_jsp</servlet-name>
      <url-pattern>/license.txt</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping> 
      <servlet-name>net.i2p.router.web.jsp.viewrouterlog_jsp</servlet-name>
      <url-pattern>/router.log</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping> 
      <servlet-name>net.i2p.router.web.jsp.viewwrapperlog_jsp</servlet-name>
      <url-pattern>/wrapper.log</url-pattern>
    </servlet-mapping>
    
    <session-config>
        <session-timeout>
            30
        </session-timeout>
        <cookie-config>
            <http-only>true</http-only>
        </cookie-config>
    </session-config>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
        <error-code>404</error-code>
        <location>/error.jsp</location>
    </error-page>
    <error-page>
        <error-code>500</error-code>
        <location>/error500.jsp</location>
    </error-page>
</web-app>
