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

    Aipo is a groupware program developed by Aimluck,Inc.
    Copyright (C) 2004-2010 Aimluck,Inc.
    http://aipostyle.com/

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-->

<!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>
    <display-name>Aipo</display-name>
    <servlet>
        <servlet-name>
           aipo
        </servlet-name>
        <servlet-class>
            org.apache.turbine.Turbine
        </servlet-class>

        <init-param>
            <param-name>properties</param-name>
            <param-value>
              WEB-INF/conf/JetspeedJResources.properties
            </param-value>
        </init-param>
        <init-param>
            <param-name>resources</param-name>
            <param-value>org.apache.jetspeed.services.resources.JetspeedResourceService</param-value>
        </init-param>
        <init-param>
            <param-name>logging</param-name>
            <param-value>org.apache.jetspeed.services.logging.JetspeedLoggingService</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <filter>
      <filter-name>baseFilter</filter-name>	
      <filter-class>com.aimluck.eip.filter.ALBaseFilter</filter-class>
    </filter>
      
    <servlet-mapping>
       <servlet-name>
          aipo
       </servlet-name>
       <url-pattern>
         /portal/*
       </url-pattern>
    </servlet-mapping>

   <filter-mapping>
     <filter-name>baseFilter</filter-name>
     <url-pattern>/*</url-pattern>
     <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    
    <mime-mapping>
      <extension>wbmp</extension>
      <mime-type>image/vnd.wap.wbmp</mime-type>
    </mime-mapping>

    <mime-mapping>
      <extension>wml</extension>
      <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>

    <mime-mapping>
      <extension>wmls</extension>
      <mime-type>text/vnd.wap.wmlscript</mime-type>
    </mime-mapping>

    <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>index.wml</welcome-file>
      <welcome-file>index.html</welcome-file>
    </welcome-file-list>

    <error-page>
      <error-code>400</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>403</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>404</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>405</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>406</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>408</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>409</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>410</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>500</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>501</error-code>
      <location>/error/404.html</location>
    </error-page>
    <error-page>
      <error-code>505</error-code>
      <location>/error/404.html</location>
    </error-page>

    <error-page>
      <exception-type>javax.servlet.jsp.jspException</exception-type>
      <location>/errors/jsp_exception.html</location>
    </error-page>
    <error-page>
      <exception-type>javax.servlet.error.request_uri</exception-type>
      <location>/errors/request_uri_exception.html</location>
    </error-page>
    <error-page>
      <exception-type>javax.servlet.error.exception</exception-type>
      <location>/errors/exception.html</location>
    </error-page>
    <error-page>
      <exception-type>javax.servlet.error.exception_type</exception-type>
      <location>/errors/exception_type.html</location>
    </error-page>
    <error-page>
      <exception-type>javax.servlet.error.message</exception-type>
      <location>/errors/error_message.html</location>
    </error-page>

</web-app>
