<?xml version="1.0" encoding="ISO-8859-1"?>

<!--
  - Licensed to the Apache Software Foundation (ASF) under one or more
  - contributor license agreements.  See the NOTICE file distributed with
  - this work for additional information regarding copyright ownership.
  - The ASF licenses this file to You under the Apache License, Version 2.0
  - (the "License"); you may not use this file except in compliance with
  - the License.  You may obtain a copy of the License at
  -
  -     http://www.apache.org/licenses/LICENSE-2.0
  -
  - Unless required by applicable law or agreed to in writing, software
  - distributed under the License is distributed on an "AS IS" BASIS,
  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  - See the License for the specific language governing permissions and
  - limitations under the License.
  -
  - $Id$
  -->

<!--
  - Version: $Revision$ $Date$
  - Authors: Kimbro Staken (kstaken@xmldatabases.org)
  -          Vladimir R. Bossicard (vladimir@apache.org)
  -->

<web-app xmlns='http://java.sun.com/xml/ns/j2ee'
         xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
         xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd'
         version='2.4'>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>

  <display-name>
    Xindice AddressBook
  </display-name>

  <context-param>
    <param-name>default_collection_hostname</param-name>
    <param-value>localhost</param-value>
  </context-param>

  <context-param>
    <param-name>default_collection_port</param-name>
    <param-value>8888</param-value>
  </context-param>

  <servlet>
    <servlet-name>Task</servlet-name>
    <servlet-class>addressbook.Task</servlet-class>
  </servlet>

  <servlet>
    <servlet-name>Setup</servlet-name>
    <servlet-class>addressbook.Setup</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>Task</servlet-name>
    <url-pattern>/Task</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>Setup</servlet-name>
    <url-pattern>/Setup</url-pattern>
  </servlet-mapping>

  <filter>
    <filter-name>CollectionCheck</filter-name>
    <filter-class>addressbook.CollectionCheck</filter-class>
  </filter>

  <filter-mapping>
    <filter-name>CollectionCheck</filter-name>
    <url-pattern>*.jsp</url-pattern>
  </filter-mapping>

  <filter-mapping>
    <filter-name>CollectionCheck</filter-name>
    <url-pattern>/Task</url-pattern>
  </filter-mapping>

  <filter>
    <filter-name>Layout</filter-name>
    <filter-class>addressbook.Layout</filter-class>
    <init-param>
      <param-name>layout</param-name>
      <param-value>/layout.jsp</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>Layout</filter-name>
    <url-pattern>*.jsp</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
  </filter-mapping>
</web-app>
