<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

    <display-name>OSCache</display-name>

    <filter>
        <filter-name>CacheFilter</filter-name>
        <filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
    </filter>

    <filter>
        <filter-name>CacheFilter-disableCacheOnMethods</filter-name>
        <filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
        <init-param>
            <param-name>time</param-name>
            <param-value>60</param-value>
        </init-param>
        <init-param>
            <param-name>disableCacheOnMethods</param-name>
            <param-value>POST,PUT,DELETE</param-value>
        </init-param>
        <init-param>
            <param-name>oscache-properties-file</param-name>
            <param-value>/oscache-cachefilter-disableCacheOnMethods.properties</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>CacheFilter</filter-name>
        <url-pattern>/filter/*</url-pattern>
    </filter-mapping>
    
    <filter-mapping>
        <filter-name>CacheFilter-disableCacheOnMethods</filter-name>
        <url-pattern>/filter2/*</url-pattern>
    </filter-mapping>
    
    <listener>
        <listener-class>com.opensymphony.oscache.web.CacheContextListener</listener-class>
    </listener>

    <servlet>
        <servlet-name>OSCacheServlet</servlet-name>
        <servlet-class>com.opensymphony.oscache.web.OscacheServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>OSCacheServlet</servlet-name>
        <url-pattern>/cacheServlet/*</url-pattern>
    </servlet-mapping>

    <session-config>
        <session-timeout>10</session-timeout>
    </session-config>

</web-app>
