3
0
Fork 0
fsim/WebRoot/WEB-INF/web.xml

176 lines
5.1 KiB
XML
Raw Normal View History

2022-11-13 13:46:54 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
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">
<!--
Copyright 2004-2006 IDCA. All rights reserved.
IDCA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
-->
<!--
=========== GENERAL CONFIG
-->
<display-name>FSIM</display-name>
<description>FSIM: File Search Index Machine</description>
<session-config>
<session-timeout>1</session-timeout>
<!-- An 1min session. -->
</session-config>
<welcome-file-list>
<!-- this file redirects to /search -->
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<description>The fsimcontext xml file</description>
<param-name>FSIM_CONFIG_FILE</param-name>
<param-value>/WEB-INF/fsim.xml</param-value>
</context-param>
<context-param>
<description>
All servlets / listeners and filters use
this context.
</description>
<param-name>FsimContextName</param-name>
<param-value>WTH-SEARCH</param-value>
</context-param>
<context-param>
<description>
The page when a host is blocked.
note: should be on other server ivm DDOS
</description>
<param-name>hostBlockedRedirectURL</param-name>
<param-value>/denied/host_blocked.jsp</param-value>
</context-param>
<!--
================== LISTENERS ========================
-->
<listener>
<listener-class>com.idca.fsim.core.FsimListener</listener-class>
<!-- Start fsim and loads config. -->
</listener>
<listener>
<listener-class>com.idca.fsim.core.indexer.IndexerManagerListener</listener-class>
<!-- Start fsim and loads config. -->
</listener>
<!--
======================== SERVLETS ======================
-->
<servlet>
<description>Fsim Search Servlet</description>
<display-name>Fsim Search Servlet</display-name>
<servlet-name>searchServlet</servlet-name>
<servlet-class>com.idca.fsim.web.SearchServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>searchServlet</servlet-name>
<url-pattern>/search</url-pattern>
</servlet-mapping>
<servlet>
<description>Fsim Admin Servlet</description>
<display-name>Fsim Admin Servlet</display-name>
<servlet-name>adminServlet</servlet-name>
<servlet-class>com.idca.fsim.web.AdminServlet</servlet-class>
<init-param>
<description>
When an hosts session is not an admin session then
hosty is blocked, time is increased with this value in minutes.
</description>
<param-name>hostBlockedNoAdminPeneltyTime</param-name>
<param-value>1</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>adminServlet</servlet-name>
<url-pattern>/admin</url-pattern>
</servlet-mapping>
<servlet>
<description>Fsim Redirect Servlet</description>
<display-name>Fsim Redirect Servlet</display-name>
<servlet-name>redirectServlet</servlet-name>
<servlet-class>com.idca.fsim.web.RedirectServlet</servlet-class>
<init-param>
<description>when click is done send to this url.</description>
<param-name>pluginPageRedirectURL</param-name>
<param-value>/ppage</param-value>
</init-param>
<init-param>
<description>blocked time im mins when parameter(s) is wrong</description>
<param-name>hostBlockedParameterPeneltyTime</param-name>
<param-value>0</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>redirectServlet</servlet-name>
<url-pattern>/redirect</url-pattern>
</servlet-mapping>
<servlet>
<description>Fsim Plugin Page Servlet</description>
<display-name>Fsim Plugin Page Servlet</display-name>
<servlet-name>pluginPageServlet</servlet-name>
<servlet-class>com.idca.fsim.web.PluginPageServlet</servlet-class>
<init-param>
<description>blocked time im mins when parameter(s) is wrong</description>
<param-name>hostBlockedParameterPeneltyTime</param-name>
<param-value>0</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>pluginPageServlet</servlet-name>
<url-pattern>/ppage</url-pattern>
</servlet-mapping>
<!--
===================== FILTERS =================================
-->
<!--
note: volgorde belangrijk !!
aangezien servlet andere resources include bv !!
en session of de aanwezig is !!
Na de SessionFilter is er altijd een session beschikbaar.
NU: request -> RequestLoggerFilter -> HostMonitoringFilter -> PagePathFilter -> SessionFilter -> AutenticationFilter -> RequestPerTimeFilter -> page(s)
-->
<filter>
<description>Manages user inlog/output</description>
<filter-name>authenticationFilter</filter-name>
<filter-class>com.idca.fsim.web.filters.AuthenticationFilter</filter-class>
<init-param>
<description>The page where a user comes when he logs out.</description>
<param-name>logoutRedirectURL</param-name>
<param-value>/search</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>authenticationFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>